Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6838387ybf; Fri, 6 Mar 2020 05:34:30 -0800 (PST) X-Google-Smtp-Source: ADFU+vvb6/gikCbXR+WsAdFQ1aBlyo9NsnO/rFIn+jsLk6ZKljSOjVXY4+A8K7OhJQ6FSNszpJQO X-Received: by 2002:aca:d40c:: with SMTP id l12mr2633753oig.65.1583501670870; Fri, 06 Mar 2020 05:34:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583501670; cv=none; d=google.com; s=arc-20160816; b=A1GTe0bFIucwkSBt2U+PulhbTL7u8DKS23yeM4rmAy42ZpxJZ9343vR3oBIuhgkIqr ZjdhzOqLtwVfy7P5sfVYgMd8YTVkTUVfz53Bef89zJkOuXIyPAgn7dEzcPkTwku1rg5N IqHCr9rL2QRtY2aVvRv4v5ULvWahUNoOnbs/HLNJOlnDIJLTe5b8eYTjCpqvT731bjey OWDRjB99K593BKwDeO+FGBopalSjxBqv668bIbfLT02p9K4b6dm7w2CQkhOjFMQoQeT0 tivDgG8Qh+MxLXORoAtUhTKtTLu/cslpy9Jq9RiXnkEWb2EjRIYW4OuzXWpzv3n8JD2F 4kfw== 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=EODaswakFebGLFRjBQu/VvZoAcrtzS9Ahme9hFlD3N8=; b=RRcs+B9n9lWDKLg4KT9YpJaxh8dwWGCaW0FvtKPsJeMQq55fXmGmQOFnMEQRnI1+nb 3m6+UvglX/5OJ1knRq7zKaBdYQTF5Xj8GkQ0KOD3VmK9rKWF6dtkgsN3JkKDBhmx/n5g jK/TKfMMqp6Cu0fOrHmjvJCNWQ8oG0KqS+2BgBPogut5eN5Eh3hKq3Qn0XRAFeeTiH7E mY5wIBy6Uh2iVZ55HcXUNcrfTPRqIpU2G96wj4elBCbV7agIDGPikBrjJ33DxHKOPxPA gUDx6sEt5pyBb8fSYkI/cacuiHJZQMSyWSZc6lF//J2to6ytYCwhm/dmKuTNDh2BA7q5 WYYg== 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 p9si1396763oth.91.2020.03.06.05.34.15; Fri, 06 Mar 2020 05:34:30 -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 S1727519AbgCFNdh (ORCPT + 99 others); Fri, 6 Mar 2020 08:33:37 -0500 Received: from foss.arm.com ([217.140.110.172]:33728 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726947AbgCFNdg (ORCPT ); Fri, 6 Mar 2020 08:33:36 -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 29EC14B2; Fri, 6 Mar 2020 05:33:36 -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 F36443F6CF; Fri, 6 Mar 2020 05:33:32 -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 , Will Deacon Subject: [PATCH v2 14/20] arm64: vdso32: Include common headers in the vdso library Date: Fri, 6 Mar 2020 13:32:36 +0000 Message-Id: <20200306133242.26279-15-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. Refactor the vdso32 implementation to include common headers. Cc: Catalin Marinas Cc: Will Deacon Signed-off-by: Vincenzo Frascino --- arch/arm64/include/asm/vdso/compat_gettimeofday.h | 2 +- arch/arm64/kernel/vdso32/vgettimeofday.c | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/arm64/include/asm/vdso/compat_gettimeofday.h b/arch/arm64/include/asm/vdso/compat_gettimeofday.h index 537b1e695365..a1f21474f11f 100644 --- a/arch/arm64/include/asm/vdso/compat_gettimeofday.h +++ b/arch/arm64/include/asm/vdso/compat_gettimeofday.h @@ -8,7 +8,7 @@ #ifndef __ASSEMBLY__ #include -#include +#include #include diff --git a/arch/arm64/kernel/vdso32/vgettimeofday.c b/arch/arm64/kernel/vdso32/vgettimeofday.c index 54fc1c2ce93f..9366ceb635a1 100644 --- a/arch/arm64/kernel/vdso32/vgettimeofday.c +++ b/arch/arm64/kernel/vdso32/vgettimeofday.c @@ -5,9 +5,6 @@ * Copyright (C) 2018 ARM Limited * */ -#include -#include - int __vdso_clock_gettime(clockid_t clock, struct old_timespec32 *ts) { -- 2.25.1