Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6838421ybf; Fri, 6 Mar 2020 05:34:32 -0800 (PST) X-Google-Smtp-Source: ADFU+vskfdgR3U8AKvJSKliVA9zX00Pir3+F+FLuKLCLNkZLrZHOzc6obPMcTyIBKcEg2jgH349Z X-Received: by 2002:a54:410e:: with SMTP id l14mr2537375oic.42.1583501672728; Fri, 06 Mar 2020 05:34:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583501672; cv=none; d=google.com; s=arc-20160816; b=dFKRUbLyfEhcyn9Jq+7eiL/tS2LzSYoFcu239SNAEeaBe1GuFJ4ROh0tKFTdhw2MBn 5WGXg5IBbVIMQYhOwc7rjxx+V5Nb/osuqDHJ0N06n+yk986GPR8WBGn+Yc/vP2HE5fuO /Pc9O8Kejc8365DWIOghipr1OGcZ+/bvISdodBtB6jFgBT0VP0zbaY9+Xj+aILEi2MKY U0BNwK7gXK3MJ0GGtTO5mbEzoJtdcQJpluSpCNBc9WhGXZD7XXaREmTilyQSxOrGwqZ5 7ZItXkB1SJhFNkMgEfNVuKhe/xsLzSTb0/6HGFLNl6lWA1dMXeTibm+kF45OUsk1rvbM iSig== 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=tNySkC2RF/9t9f+mSuItR8ZtcPzbQvji0jaLxIcNyGw=; b=RUzQpdS8I6HH1p017qO+nkzuDtQBwFZZRUJLDjRwrqZ8L2eIU5+/P9l2UbELN3YrlT Stn+3jK7e5VxxYrHrcErBLL43Gzqe+yAOYvf46b1ExbjNk+MRy6k93aCgWyVnVLK0LQ3 uVcMgnT9hDof0dztETAu6ObGPX3tiEdj712Xy2bJYtvYTYO6P6/wMiScDu2YCZkCQKyz iZ8B4nKKIzAotpVfeVAx6ZOxM7tC4aRXI+6ILbl6eLXectG/3Xv7rIA+Hb6e4TynshY7 XqyjatgwGdwzk8BtegdYG1nquwc74HfovJstpXQkL9/MXiRAWMnI/R9uGtc6WL5kfXjX oIEA== 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 k3si1376978oih.10.2020.03.06.05.34.16; Fri, 06 Mar 2020 05:34:32 -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 S1727052AbgCFNc6 (ORCPT + 99 others); Fri, 6 Mar 2020 08:32:58 -0500 Received: from foss.arm.com ([217.140.110.172]:33294 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726054AbgCFNc5 (ORCPT ); Fri, 6 Mar 2020 08:32:57 -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 F04894B2; Fri, 6 Mar 2020 05:32:56 -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 3A6F73F6CF; Fri, 6 Mar 2020 05:32:54 -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: Vincenzo Frascino , Catalin Marinas , Will Deacon , Arnd Bergmann , Russell King , Paul Burton , Thomas Gleixner , Andy Lutomirski , Ingo Molnar , Borislav Petkov , Stephen Boyd , Mark Salyzyn , Kees Cook , Peter Collingbourne , Dmitry Safonov <0x7f454c46@gmail.com>, Andrei Vagin , Nick Desaulniers Subject: [PATCH v2 01/20] linux/const.h: Extract common header for vDSO Date: Fri, 6 Mar 2020 13:32:23 +0000 Message-Id: <20200306133242.26279-2-vincenzo.frascino@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200306133242.26279-1-vincenzo.frascino@arm.com> References: <20200306133242.26279-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.1