Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6838191ybf; Fri, 6 Mar 2020 05:34:18 -0800 (PST) X-Google-Smtp-Source: ADFU+vs66BxADQ+22fxikLKvDRa1/VljmjAesFgq8JUENe9sWtCPDf2vdtGFjazzgCNZksSstq4L X-Received: by 2002:a9d:6951:: with SMTP id p17mr2393970oto.24.1583501658364; Fri, 06 Mar 2020 05:34:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583501658; cv=none; d=google.com; s=arc-20160816; b=a7SnL4PWTbYCh1URvXtiIntmLauPPiEh4/fTprk8cUxWLEwNL+EFAIcl/AFr/Q0/18 YHNS3ucSgFIEhmPRnjv6fuVZ3Y4YON9sdY9PqOJ5I+qnf+xfa4trUzoSm0xIR+obWDCD YJIqjmNo5WO79q758giTiYiDY0RPxwTvCBJe6bCfdf15coYgfEKLezQIz5xDrU2Bji9A QBu7R9uu27HvBvyPr5uJimdvBvmhCSZG0OE0nG97llLeSaf1/2b2/PuoxigWdEpFtgrU gRulhrOP7mKk21hwE09Wat0mLSbr8qZBrXHPKeIOTokXEPoibbr6m4fiRAdRRJC4wUFE SQJQ== 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=2s2zPEVQlDUKesUbKYC96uxLv6Zuu6gu5vCBvxjKU2Y=; b=CXozJwlO9MtwdwcMLeBfSaB8kBSAldm9aX/NZ336jUyIqKJtnGU1Jg2FlkaVi1YmYZ oMuKZW3SXH9mckz2PZ7015b0AGNmaZ0lGZW1L/HPxuiPiyBUqxSf/1t6GohtJVyZx3Ph +XBLiDpQDiFXFXn76A/27MC05CV2ORnDUHi6G9zmbqCr/7IUkUyr/1c0CO/KmuCllEcR zUZH0WfCbRd+oJYsUoxeM+qocd+8bcgbhEYmUgkJSQ7YCGh+M8VVL9gB2rnOvLqhMi4T E6Ko7VRKsTWtkwOxvK5yo1sTHASvS2mDV3wAC0pjPWroe0aSZYBB47pA8bDMJi2pds13 x5RA== 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 l23si1481177otf.181.2020.03.06.05.34.02; Fri, 06 Mar 2020 05:34:18 -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 S1727458AbgCFNdZ (ORCPT + 99 others); Fri, 6 Mar 2020 08:33:25 -0500 Received: from foss.arm.com ([217.140.110.172]:33602 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726733AbgCFNdY (ORCPT ); Fri, 6 Mar 2020 08:33:24 -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 9F9CA31B; Fri, 6 Mar 2020 05:33:23 -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 DCD743F6CF; Fri, 6 Mar 2020 05:33:20 -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 10/20] common: Introduce processor.h Date: Fri, 6 Mar 2020 13:32:32 +0000 Message-Id: <20200306133242.26279-11-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. Introduce processor.h to contain all the processor specific functions that are suitable for vDSO inclusion. Signed-off-by: Vincenzo Frascino --- include/common/processor.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 include/common/processor.h diff --git a/include/common/processor.h b/include/common/processor.h new file mode 100644 index 000000000000..f9f971cb4235 --- /dev/null +++ b/include/common/processor.h @@ -0,0 +1,14 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +/* + * Copyright (C) 2020 ARM Ltd. + */ +#ifndef __COMMON_PROCESSOR_H +#define __COMMON_PROCESSOR_H + +#ifndef __ASSEMBLY__ + +#include + +#endif /* __ASSEMBLY__ */ + +#endif /* __COMMON_PROCESSOR_H */ -- 2.25.1