From patchwork Thu Jan 27 16:20:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alexandru Elisei X-Patchwork-Id: 12727028 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id ABAABC433EF for ; Thu, 27 Jan 2022 16:22:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=OB3TpkzBJii4ibWvhYUY92ccqK7hQMFqfN6FiSm94JE=; b=h7MLJidcG7batR 51djpzgPuyc+c1+4CxALbfbi0zjQuxY4JQTF1ymLjCGW3VRgl8tA6HDDKYzKvDem4DDucAd4055Iw DaPUEfU/kar5bmLvRYPlt63mA+NGGVsug6B2fUukv1MIcfOW3hsoZ5OY092vVSvLHUpb4XJso8mZE QNpHk3zwEZKcSrSo7rVq+ktZuzUjTpXFONdIGQK8hy7uD6m9+ACeaYjSAyD560YOPN3pJLC8war/O V9oa4EKR62NnImaDWs6yXLwmms/OwMCUilh86Tmv3aQtOORXRfgJElYUKq6/SCS9WDr5RbgHZy2rO JSYeM+k18zu5Ror1AVJg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nD7WU-00GS6N-MR; Thu, 27 Jan 2022 16:21:22 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nD7Ve-00GRmh-KW for linux-arm-kernel@lists.infradead.org; Thu, 27 Jan 2022 16:20:32 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id AD6A41063; Thu, 27 Jan 2022 08:20:29 -0800 (PST) Received: from monolith.localdoman (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 21C193F766; Thu, 27 Jan 2022 08:20:27 -0800 (PST) From: Alexandru Elisei To: will@kernel.org, julien.thierry.kdev@gmail.com, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, maz@kernel.org, james.morse@arm.com, suzuki.poulose@arm.com, mark.rutland@arm.com, andre.przywara@arm.com Subject: [PATCH v2 kvmtool 02/10] bitops.h: Include wordsize.h to provide the __WORDSIZE define Date: Thu, 27 Jan 2022 16:20:25 +0000 Message-Id: <20220127162033.54290-3-alexandru.elisei@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220127162033.54290-1-alexandru.elisei@arm.com> References: <20220127162033.54290-1-alexandru.elisei@arm.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220127_082030_785107_BCAC7906 X-CRM114-Status: UNSURE ( 9.31 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Trying to build a source file which included bitops.h, but didn't also bring in the definition for __WORDSIZE (by including limits.h, for example) would result in the following error: include/linux/bitops.h:8:23: error: ‘__WORDSIZE’ undeclared (first use in this function) 8 | #define BITS_PER_LONG __WORDSIZE | ^~~~~~~~~~ The symbol is defined in the bits/wordsize.h header file, include it. Signed-off-by: Alexandru Elisei --- include/linux/bitops.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/bitops.h b/include/linux/bitops.h index 56448b71ebbf..3d31f0acf48e 100644 --- a/include/linux/bitops.h +++ b/include/linux/bitops.h @@ -1,6 +1,8 @@ #ifndef _KVM_LINUX_BITOPS_H_ #define _KVM_LINUX_BITOPS_H_ +#include + #include #include #include