Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1868507ybh; Fri, 13 Mar 2020 08:47:47 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtFw+tQZLQs9Yhb/W0Y7TJb2S+G2JYsBVX62kLoHWFK9qG5vKXs4dALli2F2ODt3kU14AJ7 X-Received: by 2002:a9d:5cc8:: with SMTP id r8mr11887289oti.345.1584114467128; Fri, 13 Mar 2020 08:47:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584114467; cv=none; d=google.com; s=arc-20160816; b=IhX6aB0eb5aBphduv53fdn4HFq85VfivP9gxN6pcraodK6EXNiy4aE6IUfzdtdufyp qdluynOWAUagJruEF9AzmMo1N8pbNbCV0ox2VfxL4MzOcBb6VQPoSmsG/x//ZwCFe+Z8 PBdKgsiScZDXsh2kSuFZt+7S57jOCg3Lsq1aHdKbSfmbML0ra/cLeSPCHO0wucbaOKtH Ac5gg1lJReDOoRVoLWp6f4AaUkI13Rq9T/onhbdzyWozPtXK8ObMe3rworoPkicHxb0k 4O118UMEk33SmL/2Ivi8lINV5BFWAoFfCL1/G9gIncCcTLMlrQ+dqoRdXKCST4vCYhLp sZIw== 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=SSehtFxv0+kUyNYofxE9iSS8Q0ERvouykonrWGES5CTz8lS1RBPSd+0ZtjPVjfm1kH HeGW8vqTQOnQMo2ZeVHKisUPJVfURly6Cb67BjEJ2Qudw9TojtH37zt/bdt4GaPb+H5M VMKofuehvG8RLEb6HOEiV6Cx7eubKnS/HM7iioobHBYULnk6i9B8R0bPMYgoaXWBfDcL 3+nUhjHmfOip7Rk0EEW5M+UExEq5b6NDS0PmOV3y2ab/52nJOHr1nUd9Mau+4PfueUvL M8331ZsS2E1erWn6wE2psbr+BgX0NwCu2Xt6uWi053yJnOnGGUHmmwPEeASXVgESknUc dh+Q== 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 r194si4528963oie.66.2020.03.13.08.47.34; Fri, 13 Mar 2020 08:47:47 -0700 (PDT) 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 S1727166AbgCMPpD (ORCPT + 99 others); Fri, 13 Mar 2020 11:45:03 -0400 Received: from foss.arm.com ([217.140.110.172]:58836 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727356AbgCMPpA (ORCPT ); Fri, 13 Mar 2020 11:45:00 -0400 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 3D2771045; Fri, 13 Mar 2020 08:45:00 -0700 (PDT) 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 476B93F67D; Fri, 13 Mar 2020 08:44:57 -0700 (PDT) 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 , Marc Zyngier , Mark Rutland Subject: [PATCH v3 17/26] linux/elfnote.h: Replace elf.h with UAPI equivalent Date: Fri, 13 Mar 2020 15:43:36 +0000 Message-Id: <20200313154345.56760-18-vincenzo.frascino@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200313154345.56760-1-vincenzo.frascino@arm.com> References: <20200313154345.56760-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