Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6837855ybf; Fri, 6 Mar 2020 05:33:54 -0800 (PST) X-Google-Smtp-Source: ADFU+vsx8FviQR2bI5BgQT/SAiLLzYwOo5nSZEA48ZjYsvZvrOFPm3PbQSOx58Wn/SV98T5IsHSz X-Received: by 2002:a9d:7e8c:: with SMTP id m12mr2524542otp.5.1583501634555; Fri, 06 Mar 2020 05:33:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583501634; cv=none; d=google.com; s=arc-20160816; b=wICVbfpyQUi8G/xX9N5P109lzFlijF9yb9PTjZx81i+ZOSfTi2pljwxoPeJFEyITo0 /bcknNNN9lkzC283Le1wuXzkqyW79z7STG2xXCW8FFUYBSzG1hUt9txXYla6GL+fxEv8 MCfn+1ve1eGxIsRL1zgBTxbjge6XJPxQYxwxm4+2M5LTzs61wPFuAqGI1cklwKtuLkGg LJj1P1WmoBZs2vACskWYfz0GcRHu/LNW6PQHubHira+B9IZPU0FfBbljqzk3OY+WsdgB f0EgCByyPlWlQqezKeLN6zDA37hlDGAIH4lDItyFQXd0xx65bhAF0R2q2WCNa2O6Q3b1 mBzg== 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=qB0Q6kOUEiXJ/HxwqxLUQaEZydfSnJExTb/Upw/zDQ4=; b=R9qLXMUa7OyArVlbqfkWxSOE0NRuCRrsFc9WMZLmijaKVxz7dY6OCVyTd7au5FU+Fi Lfnz/tVaMevOXngcM1ja9d86GT6VVBxAsIKVvaNu8ANjXwB2tNRTR5hJ0Wndiw02GNr8 30d4lXtZN+igaz36JYHC2KUNWMe7rOKwxxSevnisYsBZPKbAc/ilxz30nHab5N1lQOJ+ UTrg7o5aenR5D/49LicHC0DRb6Q5bdCysSIxu42eZJz5mC2iToatlacoVG1Mmcldeekg zCQHSLMkIQNS+puL25EQuCzmT4MMfcccS31OV6xaBJ2SZizjO4KIuoDmTQPSulzHq5B5 1WFw== 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 n15si1342970otr.262.2020.03.06.05.33.36; Fri, 06 Mar 2020 05:33:54 -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 S1727357AbgCFNdJ (ORCPT + 99 others); Fri, 6 Mar 2020 08:33:09 -0500 Received: from foss.arm.com ([217.140.110.172]:33426 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727186AbgCFNdJ (ORCPT ); Fri, 6 Mar 2020 08:33:09 -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 C83834B2; Fri, 6 Mar 2020 05:33:08 -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 13A6D3F6CF; Fri, 6 Mar 2020 05:33:05 -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 05/20] linux/time.h: Extract common header for vDSO Date: Fri, 6 Mar 2020 13:32:27 +0000 Message-Id: <20200306133242.26279-6-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 time.h into linux and common headers to make the latter suitable for inclusion in the vDSO library. Signed-off-by: Vincenzo Frascino --- include/common/time.h | 12 ++++++++++++ include/linux/time.h | 5 +---- 2 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 include/common/time.h diff --git a/include/common/time.h b/include/common/time.h new file mode 100644 index 000000000000..90eb9bdb40ec --- /dev/null +++ b/include/common/time.h @@ -0,0 +1,12 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef __COMMON_TIME_H +#define __COMMON_TIME_H + +#include + +struct timens_offset { + s64 sec; + u64 nsec; +}; + +#endif /* __COMMON_TIME_H */ diff --git a/include/linux/time.h b/include/linux/time.h index 8ef5e5cc9f57..617a01e2c8bb 100644 --- a/include/linux/time.h +++ b/include/linux/time.h @@ -111,9 +111,6 @@ static inline bool itimerspec64_valid(const struct itimerspec64 *its) */ #define time_between32(t, l, h) ((u32)(h) - (u32)(l) >= (u32)(t) - (u32)(l)) -struct timens_offset { - s64 sec; - u64 nsec; -}; +# include #endif -- 2.25.1