Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6838354ybf; Fri, 6 Mar 2020 05:34:27 -0800 (PST) X-Google-Smtp-Source: ADFU+vtSZl5tdX1p82tGMl7dqlMxnk0jEfJ7jqajWZB9IsXhSDk8fPpeefPsqXL6yVXvAU9HQKpi X-Received: by 2002:a05:6808:289:: with SMTP id z9mr2526126oic.48.1583501667793; Fri, 06 Mar 2020 05:34:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583501667; cv=none; d=google.com; s=arc-20160816; b=sz6z7rqpjcNb6Uf9+cmZN0PsJv4SglPXCZklmaM4QAer1QWmdt8CrTJd6EaGazVlM8 YlHOGDw0RwNsZlLvCm0GBgXvktXqXtMDvy5CLcG5T8E2Orj1y+rOFoKmG+itZL9hQGt7 nU/wpnSRK0LbMh/HdlO2eh977ZGR8DzCk/Qp9mrcq+9/5W6hzgLdx2fB2HQxWK7QSMAU g6TNDXgbJYMrcP99ErVH4jgtUWUEESi/Ulv8IFMuJqR2Iak2GQrYgOFt1+ldGQ2KMkG1 zhhYEqrmX1xcc3J5STDD+8tCPgFFZhUlMLGai9ptK5rZoUoQ/UFKtvz1j6kI0NLvohC5 ZkhA== 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=VR1kgr7ahGBWDY38WjixegQ7cQTzu+Z8n7DISE5R41A=; b=VFIR0KSc1g42MtBhI2dwb5uhNcF/ObI1wx6SVj60hiYjpmIfrzo5P00ObErMmTrZQZ Rjp2wr05udhPoBoS+8XpDIK3sR08c9RKoKeq7mm25dXUGW2N3o+8pjWvN/f0XIRpHPxp XQ6V1Ys9lv7d9vGp8antOakPj4oH4isnuIYUT8KdfeAjYMxGLc/b8oiPd+kCYqdPh/6w jZkElY5WHZsnP/tKHclxV2RMqUMsVzJ8XGsdFdzjmYmtbW3m/NRhPerK247+SrBLWykk FNOORtqvux+CdMm9qLbXSUvanFVOZrSawKdbUkob8Zp1LrcWEosPVghh2Ftn78d/VEtG 59sA== 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 g25si1598961oti.250.2020.03.06.05.34.12; Fri, 06 Mar 2020 05:34:27 -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 S1727508AbgCFNdd (ORCPT + 99 others); Fri, 6 Mar 2020 08:33:33 -0500 Received: from foss.arm.com ([217.140.110.172]:33698 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726947AbgCFNdd (ORCPT ); Fri, 6 Mar 2020 08:33:33 -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 BDA7231B; Fri, 6 Mar 2020 05:33:32 -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 DF1373F6CF; Fri, 6 Mar 2020 05:33:29 -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 13/20] arm64: vdso: Include common headers in the vdso library Date: Fri, 6 Mar 2020 13:32:35 +0000 Message-Id: <20200306133242.26279-14-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 vdso implementation to include common headers. Cc: Catalin Marinas Cc: Will Deacon Signed-off-by: Vincenzo Frascino --- arch/arm64/include/asm/vdso/gettimeofday.h | 1 - arch/arm64/kernel/vdso/vgettimeofday.c | 2 -- 2 files changed, 3 deletions(-) diff --git a/arch/arm64/include/asm/vdso/gettimeofday.h b/arch/arm64/include/asm/vdso/gettimeofday.h index b08f476b72b4..cc3456416096 100644 --- a/arch/arm64/include/asm/vdso/gettimeofday.h +++ b/arch/arm64/include/asm/vdso/gettimeofday.h @@ -8,7 +8,6 @@ #ifndef __ASSEMBLY__ #include -#include #define __VDSO_USE_SYSCALL ULLONG_MAX diff --git a/arch/arm64/kernel/vdso/vgettimeofday.c b/arch/arm64/kernel/vdso/vgettimeofday.c index 747635501a14..4236cf34d7d9 100644 --- a/arch/arm64/kernel/vdso/vgettimeofday.c +++ b/arch/arm64/kernel/vdso/vgettimeofday.c @@ -5,8 +5,6 @@ * Copyright (C) 2018 ARM Limited * */ -#include -#include int __kernel_clock_gettime(clockid_t clock, struct __kernel_timespec *ts) -- 2.25.1