Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp720716ybv; Thu, 13 Feb 2020 08:18:41 -0800 (PST) X-Google-Smtp-Source: APXvYqxgAhBvSuEqjDYRyFP/nfBle6V3TO7GLbxAJDNd6bMhBPN4wmzzP1QXHWOuQsQmLQKXsfug X-Received: by 2002:a54:440e:: with SMTP id k14mr3331384oiw.160.1581610721824; Thu, 13 Feb 2020 08:18:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581610721; cv=none; d=google.com; s=arc-20160816; b=vTOCPEJLhe3fxA+rj/apXdqFiDQ6z8fXqHDYVGittdgaMt6+yAgH3WzAEPtVFZmkMj saJfr4e9tZrtnI3Rve720zSQhaBLKPC6ekf4sALG18Mh39GPFhsVZ0ZB9vnb/hWshV2B JkSb69Yd7mia7FAPc5JgePPwv1JXF0M3OREKTTi+TuLsewNTm9AwbKmY8S1GVtmAjdef VkQNTksgVSdyRkvhBfkDRl7s6s9yl4PT2i6UBEHLYcy2jL6U6Ecm1Mr3x5nTdcKG2Jww v2FmvgoB2/mqbzPAhYQbybOvDaut1DS6f1oIPFq5p0sV3FybVotm18Q40eRLEO2tyuiq DNMA== 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=/nmZF4fO/TPZzzehXtrgrQAI9JQ//ea1PhOG9M0OF+w=; b=K9meOfISedwNRKaSR/8rGJMkz+fOMXlqcu1hLsD98pv0Hi81U4Mp6BNNowPkL4JdlT cuydg7RLp8EtjSZNk8WsoAL47VnTm/x0UhnjLaHGhP69MTL7WQDFwZ9FywBAzuaPt6Gf hlKqvu0Tldzy/Q90apFGAVsMQpL0pT1tZrFy0YZ4TCjG1l7pBGl8IH0u4dsXCdIVsTWf Z+fl3rV3Xfr3yNeE4zLmAn9Y/zGTzPrbGGZ5tFNfmxHcrngeXZNf0SPaVzL/bNawkGw+ vzbMjF1W5rWt2mMpLPKDoOzY21BKQfbIypim2ARw5UkrhcDg1yAE5hmYG0KnsaCloGEa VxgQ== 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 w11si1470122oic.62.2020.02.13.08.18.29; Thu, 13 Feb 2020 08:18:41 -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 S1729137AbgBMQRE (ORCPT + 99 others); Thu, 13 Feb 2020 11:17:04 -0500 Received: from foss.arm.com ([217.140.110.172]:49896 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728514AbgBMQRC (ORCPT ); Thu, 13 Feb 2020 11:17:02 -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 27F59328; Thu, 13 Feb 2020 08:17:02 -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 978EE3F6CF; Thu, 13 Feb 2020 08:16:59 -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 07/19] linux/time64.h: Extract common header for vDSO Date: Thu, 13 Feb 2020 16:16:02 +0000 Message-Id: <20200213161614.23246-8-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 time64.h into linux and common headers to make the latter suitable for inclusion in the vDSO library. Signed-off-by: Vincenzo Frascino --- include/common/time64.h | 14 ++++++++++++++ include/linux/time64.h | 10 +--------- 2 files changed, 15 insertions(+), 9 deletions(-) create mode 100644 include/common/time64.h diff --git a/include/common/time64.h b/include/common/time64.h new file mode 100644 index 000000000000..ff5a72fafb30 --- /dev/null +++ b/include/common/time64.h @@ -0,0 +1,14 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef __COMMON_TIME64_H +#define __COMMON_TIME64_H + +/* Parameters used to convert the timespec values: */ +#define MSEC_PER_SEC 1000L +#define USEC_PER_MSEC 1000L +#define NSEC_PER_USEC 1000L +#define NSEC_PER_MSEC 1000000L +#define USEC_PER_SEC 1000000L +#define NSEC_PER_SEC 1000000000L +#define FSEC_PER_SEC 1000000000000000LL + +#endif /* __COMMON_TIME64_H */ diff --git a/include/linux/time64.h b/include/linux/time64.h index 19125489ae94..3d8b3739e885 100644 --- a/include/linux/time64.h +++ b/include/linux/time64.h @@ -3,6 +3,7 @@ #define _LINUX_TIME64_H #include +#include typedef __s64 time64_t; typedef __u64 timeu64_t; @@ -19,15 +20,6 @@ struct itimerspec64 { struct timespec64 it_value; }; -/* Parameters used to convert the timespec values: */ -#define MSEC_PER_SEC 1000L -#define USEC_PER_MSEC 1000L -#define NSEC_PER_USEC 1000L -#define NSEC_PER_MSEC 1000000L -#define USEC_PER_SEC 1000000L -#define NSEC_PER_SEC 1000000000L -#define FSEC_PER_SEC 1000000000000000LL - /* Located here for timespec[64]_valid_strict */ #define TIME64_MAX ((s64)~((u64)1 << 63)) #define TIME64_MIN (-TIME64_MAX - 1) -- 2.25.0