Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6838749ybf; Fri, 6 Mar 2020 05:34:57 -0800 (PST) X-Google-Smtp-Source: ADFU+vvWWc92ERyF40Hff8xvZaa2aeR1/KwG4VFThqU8dD1e6Z3iWIUYPu1THm5QWwSaKbiW18RJ X-Received: by 2002:a05:6808:b02:: with SMTP id s2mr2641824oij.58.1583501697163; Fri, 06 Mar 2020 05:34:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583501697; cv=none; d=google.com; s=arc-20160816; b=PFMrCuBhgBfdqaZsXNQ7UwoTBqUEoXbAhf9Vruixh+kRnh+xPg9r32YeHqiU9yJYdC hHya0XgMtMbXnWaINxDb6CVrFQBH4rhhEAXNR1QuQM5sGyCfhtP4VImfEvYUbiNd5iV8 rqK5dSpqJEbFf9QctpzUuT4kEOuLmhB2U7ZjiBgS34pH7oKzpwMrKPQAL0zRmD5AA+AW q91jm42OQklszdN6ssJqp6gzKDV8LTeuDVhcaV14UVC7Tv4dly36wjRtZ5G4HH0rJhag QeteOpS3YCMmz8kVHizipeIk4fMq0zyMNYUy/YZ1CzfquQI5IWg1FqBjG1t0+FwRA2Qu TFEA== 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=45dmz4lkLqEgQEkqWUZLOEEGGbz2t9aZYXC56JrVZTs=; b=l7IKY6nozhBUKBpHnw5rptGiYckZ0Zq6yNPHRpJ9OAkr++6vFMKQv6t6mAhs3r0UMQ dKXNwYuwx+2z7Nc5tiqr+kK+Z4WBQJvHzdLk1yB2eV5HUre9qiJ+rKn7q1V9VM0fON6G 5BfmQ9mDGeiicnBmExbd0iUrE7rHEye8Frd8fAQcQ6zjPnUc3/jK01pn0mWJlxwvYCtr vyq5QtcZPywm4xDavoUtedJDEX2jBOapatcoU0aZQqTcXiTFiVyg0FemQ9vai1ac3sSz gkZYnSfXqnlVYnxsBp9W3yrk2i5VGu4nkPt6fPyGsb0XHsBW2xCT4S6Gslut90v0ReSu hFbA== 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 x22si1326548oic.119.2020.03.06.05.34.45; Fri, 06 Mar 2020 05:34:57 -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 S1727387AbgCFNdN (ORCPT + 99 others); Fri, 6 Mar 2020 08:33:13 -0500 Received: from foss.arm.com ([217.140.110.172]:33462 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727186AbgCFNdM (ORCPT ); Fri, 6 Mar 2020 08:33:12 -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 BF0E1101E; Fri, 6 Mar 2020 05:33:11 -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 0971D3F6CF; Fri, 6 Mar 2020 05:33:08 -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 06/20] linux/time32.h: Extract common header for vDSO Date: Fri, 6 Mar 2020 13:32:28 +0000 Message-Id: <20200306133242.26279-7-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 time32.h into linux and common headers to make the latter suitable for inclusion in the vDSO library. Signed-off-by: Vincenzo Frascino --- include/common/time32.h | 17 +++++++++++++++++ include/linux/time32.h | 13 +------------ 2 files changed, 18 insertions(+), 12 deletions(-) create mode 100644 include/common/time32.h diff --git a/include/common/time32.h b/include/common/time32.h new file mode 100644 index 000000000000..d5b85abdfaf1 --- /dev/null +++ b/include/common/time32.h @@ -0,0 +1,17 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef __COMMON_TIME32_H +#define __COMMON_TIME32_H + +typedef s32 old_time32_t; + +struct old_timespec32 { + old_time32_t tv_sec; + s32 tv_nsec; +}; + +struct old_timeval32 { + old_time32_t tv_sec; + s32 tv_usec; +}; + +#endif /* __COMMON_TIME32_H */ diff --git a/include/linux/time32.h b/include/linux/time32.h index cf9320cd2d0b..e75dd5f9df8f 100644 --- a/include/linux/time32.h +++ b/include/linux/time32.h @@ -11,18 +11,7 @@ #include #include - -typedef s32 old_time32_t; - -struct old_timespec32 { - old_time32_t tv_sec; - s32 tv_nsec; -}; - -struct old_timeval32 { - old_time32_t tv_sec; - s32 tv_usec; -}; +#include struct old_itimerspec32 { struct old_timespec32 it_interval; -- 2.25.1