Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1865974ybh; Fri, 13 Mar 2020 08:45:14 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvbVp9oiwyHjuDLHl2knilmeDJoYpBDwK1auUl0tTxwvvonU4kpNTEkPApVJaQmjKwhwJCd X-Received: by 2002:a9d:6b17:: with SMTP id g23mr9359996otp.263.1584114314124; Fri, 13 Mar 2020 08:45:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584114314; cv=none; d=google.com; s=arc-20160816; b=Lj3nVuwm90FbQ+j870F8PmgXS53AdHa8R0cqjHndbxGVd0kt5IUZijLa3aCTS/GtXD RyQ8G9pxmCZcVOCldC+0E5X86Awza26IwdE7EJK3tyZejLj8EcF1kHmhyJWQowDhZSCA +yKudz+RPoqGk+ZXdpJfr0hWWC5aur/u4wR6j1leKB0Aur2kyc1MXQep8/SG28fv4ZJo PRnIJg3HHBV54TVR6HMpDjBqvgcasa4Bqz0h8cUG4RDOuzZrWw81VV2Qhc1JWl4lBzZI oWG0aWEoMcbbD4kxu2uGi/e4US3FyA7UDbJ6HUNeHE4zt2CJbv5yY98KuCfoiTs6QTEP nqRw== 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=SZJr9Zjb62PxdiJA95xJ8NZ5YyNie6bsqUUXkvVPpeQ=; b=Ty4TREnbwF2bICY+ulCaRoH/sCjdRn+ySVJmAWcE/zgfiZPxzRa+GAiOiamDghcpMt EvtN8UOeZgTV0uuLDBWBMJpN9DUhP6e0rIE4CghnGvrFfLiF/pQQeN4+gywZ6MJtY1Qk vqCCLUvlgJaVysDVc6M9Er6+c5a9abHJHQZnq/xUlnT5FDiw3Pwlx7kp59BlAZeQcyJ5 5FmhZZotR3SzdmN0kaknIUO0RSM7boffdT/kj2UML0sDpf1L3ZXzJ5PeUBlN8jUMMkB+ 0zEp4x9vxzZj+rb815MCoULFBBOiVtZZXubJfFdgSOixR3pLeBwTiXf35tcz4HGd4UCv B0GA== 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 m2si4929306otr.270.2020.03.13.08.45.02; Fri, 13 Mar 2020 08:45:14 -0700 (PDT) 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 S1727152AbgCMPoa (ORCPT + 99 others); Fri, 13 Mar 2020 11:44:30 -0400 Received: from foss.arm.com ([217.140.110.172]:58464 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727144AbgCMPo2 (ORCPT ); Fri, 13 Mar 2020 11:44:28 -0400 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 0B477FEC; Fri, 13 Mar 2020 08:44:28 -0700 (PDT) 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 EE5CE3F67D; Fri, 13 Mar 2020 08:44:24 -0700 (PDT) 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 , Marc Zyngier , Mark Rutland , Paul Burton Subject: [PATCH v3 07/26] mips: Introduce asm/vdso/clocksource.h Date: Fri, 13 Mar 2020 15:43:26 +0000 Message-Id: <20200313154345.56760-8-vincenzo.frascino@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200313154345.56760-1-vincenzo.frascino@arm.com> References: <20200313154345.56760-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 asm/vdso/clocksource.h to contain all the arm64 specific functions that are suitable for vDSO inclusion. This header will be required by a future patch that will generalize vdso/clocksource.h. Cc: Paul Burton Signed-off-by: Vincenzo Frascino --- arch/mips/include/asm/clocksource.h | 4 +--- arch/mips/include/asm/vdso/clocksource.h | 9 +++++++++ 2 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 arch/mips/include/asm/vdso/clocksource.h diff --git a/arch/mips/include/asm/clocksource.h b/arch/mips/include/asm/clocksource.h index de659cae0d4e..2f1ebbea3d72 100644 --- a/arch/mips/include/asm/clocksource.h +++ b/arch/mips/include/asm/clocksource.h @@ -6,8 +6,6 @@ #ifndef __ASM_CLOCKSOURCE_H #define __ASM_CLOCKSOURCE_H -#define VDSO_ARCH_CLOCKMODES \ - VDSO_CLOCKMODE_R4K, \ - VDSO_CLOCKMODE_GIC +#include #endif /* __ASM_CLOCKSOURCE_H */ diff --git a/arch/mips/include/asm/vdso/clocksource.h b/arch/mips/include/asm/vdso/clocksource.h new file mode 100644 index 000000000000..510e1671d898 --- /dev/null +++ b/arch/mips/include/asm/vdso/clocksource.h @@ -0,0 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +#ifndef __ASM_VDSOCLOCKSOURCE_H +#define __ASM_VDSOCLOCKSOURCE_H + +#define VDSO_ARCH_CLOCKMODES \ + VDSO_CLOCKMODE_R4K, \ + VDSO_CLOCKMODE_GIC + +#endif /* __ASM_VDSOCLOCKSOURCE_H */ -- 2.25.1