Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp720747ybv; Thu, 13 Feb 2020 08:18:44 -0800 (PST) X-Google-Smtp-Source: APXvYqxeUKT3VFFy+qB5DV1QgA8C9ndwln0dKmW6+RX2gO22UGi/jmWMm9SRYzbrghHXFfHBvwAP X-Received: by 2002:a05:6830:18c4:: with SMTP id v4mr13472278ote.265.1581610723956; Thu, 13 Feb 2020 08:18:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581610723; cv=none; d=google.com; s=arc-20160816; b=n1tluKr0GSGYyY4r8KaIPHIqwglwN/s0PtWxrP8cncWpyw1sXyYzdIJiVNAY46SVSE T6q0g24sw+Cxnv7safIGSMX3rD0sFiQ3GC+dffK3eHkbuA/g2T0kDnuLH1FIimGi3PIS QQ7HKvO+2QyHBwiFZbMSgep6Kc8XeStQRmx4dtZ2hYKgXJY7PeaiqZP4J8TgEM4j0J0+ GPw8s4UgJ/QS9cYnt3BWhtVRxk2HBXsrx9AtZak5ORmeFKhzuIK0HqbCK1LTQNQv+KsQ 6VGMZ97d+UIxq5PaOTQ+VEW7ForlTrLWWeuzIBm4g/GgF2+CTIoBdMcCdDMzghQUBzVD JkpQ== 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=7c/QkYSAk1LTCsxn4aeP9uVtddrTtUlnKQdt/0P09Ho=; b=KhSTmOvNTJAHC89dZ28XNIzhMuMW5LaDLJ4kQ7NzPv3pgzp4E5xCVg2a8mrezN7pav 09WFj1Eogmhp8iKFRa4zO/WJxMSFOhOzUfM63Dt7nSiKPRsKjO40TCSklcY5ZglR0UJA Je7EZtYf0K049rDR3vjzbJmOKDLN9stSoA1yeo4UUte37bTWU1Ze/3QFDiTMsSWGn9bx uWclDiG3uRUjwdwhMJ5BnE3x7gOlK17Q1R/lY6G7bE8eR4eEWEklWsAKSI2VX8Mxhr/n zxSuizlcYAKFXZinb/cDIOxaUx0njEtw1WaP6CrkHv54Bp+HcsNgIWIRY1X5jkmmri7R upqA== 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 y8si1296785oih.141.2020.02.13.08.18.31; Thu, 13 Feb 2020 08:18:43 -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 S1728495AbgBMQQ7 (ORCPT + 99 others); Thu, 13 Feb 2020 11:16:59 -0500 Received: from foss.arm.com ([217.140.110.172]:49822 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728267AbgBMQQ5 (ORCPT ); Thu, 13 Feb 2020 11:16: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 A0EB41063; Thu, 13 Feb 2020 08:16: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 2028D3F6CF; Thu, 13 Feb 2020 08:16: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: catalin.marinas@arm.com, will.deacon@arm.com, arnd@arndb.de, linux@armlinux.org.uk, paul.burton@mips.com, tglx@linutronix.de, luto@kernel.org, mingo@redhat.com, bp@alien8.de, sboyd@kernel.org, salyzyn@android.com, pcc@google.com, 0x7f454c46@gmail.com, ndesaulniers@google.com, avagin@openvz.org Subject: [PATCH 05/19] linux/time.h: Extract common header for vDSO Date: Thu, 13 Feb 2020 16:16:00 +0000 Message-Id: <20200213161614.23246-6-vincenzo.frascino@arm.com> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200213161614.23246-1-vincenzo.frascino@arm.com> References: <20200213161614.23246-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.0