Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp719176ybv; Thu, 13 Feb 2020 08:17:13 -0800 (PST) X-Google-Smtp-Source: APXvYqwO1o7Aj4jPrcE4V97WwmV/QrZEaw6DJ5Q2Ymo58WTD3Rx8rwKLzGg4u3psXPx5fpXHl0LO X-Received: by 2002:a9d:6e9a:: with SMTP id a26mr339958otr.344.1581610632199; Thu, 13 Feb 2020 08:17:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581610632; cv=none; d=google.com; s=arc-20160816; b=XaNwKVnYpj4engm7f0K+oLo6O6Oq6ytnpaFiYb7hhIVoO/pLWZlwjB5gRjGzyrVF04 Pw+DEKBcAy4ve0ydww6x1ZM9hZmml/dG+JD9vTG+Os3/ztIfJutiP+LOYudbANijCgIj thMq3b2FW7rxoMpTEZchmRGnfuXA00Nf7c23O5h+rdJ+rROX4lom+juCxhXI+igDCL+M L0T31HzC5qhYnIW1MwmiZZQr3QmEZU8nUVLUXph4Z1/1od9/vjxmCtRu2WkdvZXtXCJB d+6i4WXD/uiv0sTOr+txE/XWySwip5rBUwp6Bp241mB96+uIvbQssZrOZjV3auZxVRpc 4kCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=tbY0hIwMdHW6S4zydfOo6/6VnKgteaI9qv+4j+THMJc=; b=kpSptb3QfEhwa6V9scQAaAKHDYCnMc2RB4cIIqzK6ZPWGW/DtYIyW8LjwvERjt2UB+ dM6biEJywAlPg3599nTYl9cD1HCVSfIcmY17EOfkS0UMAalIdwyLaLiD5LSru3aSYB+/ P9vcI4/TGqW0ZqokfsCopryxccmjqUsiR5hnjcnRrZ9anE23RwR5THOV4BThyott5PBL +8H8c4/08DfdI48JPp4/en9pu6+I+JbQt9HxApI6VXczwicNZ8lQA/GKSwvDUgx8yc+o rDWTyHiyRkK9BEEXOqDKEGCq149HgfxjKLKrKqag9YhAnL17Z2/EV3TyXHhebHnwnyJc 0bwg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o1si1335289otk.154.2020.02.13.08.16.59; Thu, 13 Feb 2020 08:17:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728079AbgBMQQt (ORCPT + 99 others); Thu, 13 Feb 2020 11:16:49 -0500 Received: from foss.arm.com ([217.140.110.172]:49722 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725781AbgBMQQs (ORCPT ); Thu, 13 Feb 2020 11:16:48 -0500 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 680AC1063; Thu, 13 Feb 2020 08:16:48 -0800 (PST) Received: from e119884-lin.cambridge.arm.com (e119884-lin.cambridge.arm.com [10.1.196.72]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id DB9DD3F6CF; Thu, 13 Feb 2020 08:16:45 -0800 (PST) From: Vincenzo Frascino To: linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, clang-built-linux@googlegroups.com, x86@kernel.org Cc: catalin.marinas@arm.com, will.deacon@arm.com, arnd@arndb.de, linux@armlinux.org.uk, paul.burton@mips.com, tglx@linutronix.de, luto@kernel.org, mingo@redhat.com, bp@alien8.de, sboyd@kernel.org, salyzyn@android.com, pcc@google.com, 0x7f454c46@gmail.com, ndesaulniers@google.com, avagin@openvz.org Subject: [PATCH 02/19] linux/bits.h: Extract common header for vDSO Date: Thu, 13 Feb 2020 16:15:57 +0000 Message-Id: <20200213161614.23246-3-vincenzo.frascino@arm.com> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200213161614.23246-1-vincenzo.frascino@arm.com> References: <20200213161614.23246-1-vincenzo.frascino@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The vDSO library should only include the necessary headers required for a userspace library (UAPI and a minimal set of kernel headers). To make this possible it is necessary to isolate from the kernel headers the common parts that are strictly necessary to build the library. Split bits.h into linux and common headers to make the latter suitable for inclusion in the vDSO library. Signed-off-by: Vincenzo Frascino --- include/common/bits.h | 9 +++++++++ include/linux/bits.h | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 include/common/bits.h diff --git a/include/common/bits.h b/include/common/bits.h new file mode 100644 index 000000000000..6da493992e52 --- /dev/null +++ b/include/common/bits.h @@ -0,0 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef __COMMON_BITS_H +#define __COMMON_BITS_H + +#include + +#define BIT(nr) (UL(1) << (nr)) + +#endif /* __COMMON_BITS_H */ diff --git a/include/linux/bits.h b/include/linux/bits.h index 669d69441a62..aeb76fede77a 100644 --- a/include/linux/bits.h +++ b/include/linux/bits.h @@ -3,9 +3,9 @@ #define __LINUX_BITS_H #include +#include #include -#define BIT(nr) (UL(1) << (nr)) #define BIT_ULL(nr) (ULL(1) << (nr)) #define BIT_MASK(nr) (UL(1) << ((nr) % BITS_PER_LONG)) #define BIT_WORD(nr) ((nr) / BITS_PER_LONG) -- 2.25.0