Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6838313ybf; Fri, 6 Mar 2020 05:34:24 -0800 (PST) X-Google-Smtp-Source: ADFU+vv2FSsXrrtmLJbGjguMwFh0e/Ir1e2oPdGw654VWCCX6YHrsJEemfRmoaMVMNIGsDpmOgBx X-Received: by 2002:a54:4181:: with SMTP id 1mr2486820oiy.61.1583501664753; Fri, 06 Mar 2020 05:34:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583501664; cv=none; d=google.com; s=arc-20160816; b=WusZTYVmtzfhzHBZR31bX+BIpr5l+y/Kz1Pwufvt7AEAEgBa1q2fPKfj8I2rMD8k5y SHWygUuruj3qZcuHEmQj5suiRS94qEF6pyiXZtkksRn5jZu4YG8E7o90I43Fi9Nxeoxn bw8bgpeqRlFukeOWt2AYuACCnGweuD3bqsBFNGXTIZThrSscNdlz5V9ADym7BqJp5Kiu SFwyDbRMpTjryyes7BMXfWbH1VCj0XMACaGDqPVXKXW0ukvFLrmAP89PcOLnl8pj27qY P9uudk/ILrhL/A7J8dF8d9Ftq589NwZLTTCoaAauBJco0cWYF3DreUqQH30L6j53V3aJ RfdQ== 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=+XT/Ggmb5iCSA91ILbc1CBNHo5HVyQjPuJuT0/OJUWM=; b=KzmXwVfprjbJyZMEOkluJryQ68TRwBbj9SUjV6C4id1e0K5T7kl6bTYsOC826JcQWw lAKlFZNZ/tpWUyOF3h49K0sDgBZLQNvKTvJOCgxQm0f+luGW1aPI206bsRMezxD/Cej7 Y/cus2+/y/6xd58D2jyLtkZqulWMJUqauEhUvjKXj+W+6R0nGwzE4m0ja3EtqwwFsCGC Fy2U2oGyyyeHEeHzdoAyLjZQezisef9nHF/Rohjs85+DX+24SPXamF8mOMu5cbnMAx/W rkzYknx/12w6RjELJkZvnTTCRBWZmZPLOK1wbi4B5jNJQRZAJFGOK9IecFcbJEyJIHVk O4aw== 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 x16si1363027otp.180.2020.03.06.05.34.06; Fri, 06 Mar 2020 05:34:24 -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 S1727471AbgCFNd1 (ORCPT + 99 others); Fri, 6 Mar 2020 08:33:27 -0500 Received: from foss.arm.com ([217.140.110.172]:33638 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726733AbgCFNd1 (ORCPT ); Fri, 6 Mar 2020 08:33:27 -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 96D9F4B2; Fri, 6 Mar 2020 05:33:26 -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 D58623F6CF; Fri, 6 Mar 2020 05:33:23 -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 11/20] linux/elfnote.h: Replace elf.h with UAPI equivalent Date: Fri, 6 Mar 2020 13:32:33 +0000 Message-Id: <20200306133242.26279-12-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. Replace linux/elf.h with UAPI equivalent in elfnote.h to make the header suitable for vDSO inclusion. Signed-off-by: Vincenzo Frascino --- include/linux/elfnote.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/elfnote.h b/include/linux/elfnote.h index f236f5b931b2..594d4e78654f 100644 --- a/include/linux/elfnote.h +++ b/include/linux/elfnote.h @@ -59,7 +59,7 @@ ELFNOTE_END #else /* !__ASSEMBLER__ */ -#include +#include /* * Use an anonymous structure which matches the shape of * Elf{32,64}_Nhdr, but includes the name and desc data. The size and -- 2.25.1