Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1867688ybh; Fri, 13 Mar 2020 08:46:56 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvY03TwgRxIMpGRma9czgpqwvqvCMlURygf1+7FTq9WRtX3WQUHFv+EjsP/+Os4sKFN/n/Q X-Received: by 2002:aca:f07:: with SMTP id 7mr7233365oip.29.1584114416168; Fri, 13 Mar 2020 08:46:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584114416; cv=none; d=google.com; s=arc-20160816; b=N2v4NaOpDHggipDiEgmPCgnz/q+cTk0G0VND+q4qUws4tTV1pDvOQkFrN70vesWc2G BoDS+zWV2r8GOZnPtH+EpvoQOu2jeZXxorYA8ZbeOpq1RHBi0Y/jpj5ZR1iQh0LNNdRK AjNxknJGnVxOrHbEotl9HP1mXP1Iw5Bp02h9bS3X9WImut5WhBlY7GIL/ec4YwtkQe6r mEUWEOiNgZLLbVKtubqWVw9qYA81bq+SmTSIPXaoKgSrdm2ARpe0MzXtMmWtHef9JXGG xq7RC5qHjzwUAFZEZWafRKVCrIlecgGAhujMJiGJwI5Ihot3G2+0JlKTWHM+RotihaXs dpfw== 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=r7MQp9Yp9c27zQDo2jnhYH5VEGO3J90fS1j/2dFhDbg=; b=NKYjX63zifUdNOadliNCqIAZoQuSYz2QYuOUI4zuqO4ORCLB/+AMLQaFfOW/8Mqrr0 tieGUmRlqa6xJcbS6/rx3pbIbZsEeax5k5K+dqqUeYB9t6sFitZya0LUxsTdEWW3Laii TIROy2QN2J5WsdhgCjKT9PpaLTFbmon1EulvTDXP4lKIre7M+z3/KlKjoypzcdCiGSah Hqv/gVHjjGgm9r3m/hE2ajwaim9nbxy8x8nA/HMTP1u9jTAkXwldKS5FJKpxorGLvV/w mWTzRGGlrSzasCRUv+Dj/x2lL1v31WDeHKRAdpdPXJyrmObId59ruICfJvvvOHkvGrpV 0pYA== 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 m7si4717171oie.138.2020.03.13.08.46.44; Fri, 13 Mar 2020 08:46:56 -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 S1726691AbgCMPok (ORCPT + 99 others); Fri, 13 Mar 2020 11:44:40 -0400 Received: from foss.arm.com ([217.140.110.172]:58572 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727144AbgCMPoi (ORCPT ); Fri, 13 Mar 2020 11:44:38 -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 94C3FFEC; Fri, 13 Mar 2020 08:44:37 -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 9F1EC3F67D; Fri, 13 Mar 2020 08:44:34 -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 Subject: [PATCH v3 10/26] linux/time.h: Extract common header for vDSO Date: Fri, 13 Mar 2020 15:43:29 +0000 Message-Id: <20200313154345.56760-11-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. 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/linux/time.h | 5 +---- include/vdso/time.h | 12 ++++++++++++ 2 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 include/vdso/time.h diff --git a/include/linux/time.h b/include/linux/time.h index 8ef5e5cc9f57..4c325bf44ce0 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 diff --git a/include/vdso/time.h b/include/vdso/time.h new file mode 100644 index 000000000000..739f53cd2949 --- /dev/null +++ b/include/vdso/time.h @@ -0,0 +1,12 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef __VDSO_TIME_H +#define __VDSO_TIME_H + +#include + +struct timens_offset { + s64 sec; + u64 nsec; +}; + +#endif /* __VDSO_TIME_H */ -- 2.25.1