Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp719070ybv; Thu, 13 Feb 2020 08:17:06 -0800 (PST) X-Google-Smtp-Source: APXvYqzYZTmGOk9HwJ/XVnPIuf+EqZiutH+IeR21lbxqPEXBdkBGLG5yKFAqokxFYpZZOvbVMTpy X-Received: by 2002:aca:5f87:: with SMTP id t129mr3497864oib.36.1581610626799; Thu, 13 Feb 2020 08:17:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581610626; cv=none; d=google.com; s=arc-20160816; b=iSY4LOJPcQkdN0arMpV1Tqi85ZOFhAojYzcVZ36x20yLtTqo9Di6zhg+baaNiKt87j 6FYTSu6CEDqGH+zpSgxFO6tBhSs60GRUez92He+cFPl7+lP5C4QE8xtcMhek7XT2IDUL 2h+LMhvL6Ul3pycqvUcYjFzA0FL2PtiaD5y17v7dkFxC/FY6zs2phGmDTkIn2G0SwbfQ 1yGE9znlpEW+B/tcV0G2xfGvFqYz9tLLYh1FewB0pCIhM0LerTyI2JbKGdW52ylF+mJI F+vFBJxM3ktENZcbildNdpimwOLDAQSId6Wu2MYbf5VRQlKaG0YhIgxk7MV83CwBL7Yz ka1Q== 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=+MpPWqWYM1faDbTOS1bdajhfM6E9cdD+oj31KrtICrA=; b=yrFKJoi+cE9gj5ffFPsPl1ytD8JYDxcDSEael03FBRfmtNupsleEPKDSjn62bW+wOA 5iMbRJOskiTghy//VROgZzLwPBVWrMTsByPbppujcn9Zgv7lYliUWPheH22CORW1H9lr RtYfs23N0kLpmxb5RXIdPGx9Wdj4ZKQTxXd7Xk8AFVCtiCR4B2hLJU3x17C61EDfQWOE n3WYcUWgFbJtRyU374GYMUpCfWOzfJwql16b5S4QmrRV0C2dE42ndBj+PX1kQcXYNl3h piU0pNSBmHzOIoZ+EYrMC2JBjkSsN/NC0SPs67qKr4FbzuTsYZW650YkMBHmVKzk5V81 +YQA== 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 x197si1230721oix.174.2020.02.13.08.16.53; Thu, 13 Feb 2020 08:17:06 -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 S1727999AbgBMQQq (ORCPT + 99 others); Thu, 13 Feb 2020 11:16:46 -0500 Received: from foss.arm.com ([217.140.110.172]:49692 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725781AbgBMQQq (ORCPT ); Thu, 13 Feb 2020 11:16:46 -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 A69F41045; Thu, 13 Feb 2020 08:16:45 -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 235143F6CF; Thu, 13 Feb 2020 08:16:43 -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 01/19] linux/const.h: Extract common header for vDSO Date: Thu, 13 Feb 2020 16:15:56 +0000 Message-Id: <20200213161614.23246-2-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 const.h into linux and common headers to make the latter suitable for inclusion in the vDSO library. Signed-off-by: Vincenzo Frascino --- include/common/const.h | 10 ++++++++++ include/linux/const.h | 5 +---- 2 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 include/common/const.h diff --git a/include/common/const.h b/include/common/const.h new file mode 100644 index 000000000000..cc209eec47a1 --- /dev/null +++ b/include/common/const.h @@ -0,0 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef __COMMON_CONST_H +#define __COMMON_CONST_H + +#include + +#define UL(x) (_UL(x)) +#define ULL(x) (_ULL(x)) + +#endif /* __COMMON_CONST_H */ diff --git a/include/linux/const.h b/include/linux/const.h index 7b55a55f5911..447a5b98d5a3 100644 --- a/include/linux/const.h +++ b/include/linux/const.h @@ -1,9 +1,6 @@ #ifndef _LINUX_CONST_H #define _LINUX_CONST_H -#include - -#define UL(x) (_UL(x)) -#define ULL(x) (_ULL(x)) +#include #endif /* _LINUX_CONST_H */ -- 2.25.0