From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 784BAC3DA7F for ; Wed, 7 Aug 2024 15:47:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=tRmMETb/7MTV1QXR0Clr7A+ZjYv8xAw5xIefPC+Km8g=; b=qb5zSzgKFz3DoGStQbt5NlVx73 2f1/541jE/vQTPWczLuSZArbgCxBfAuFmFDseO21PFqJav6ucXcpXApahG/erJp9jW0jl4WhhbyzI tmiGK6NOtnHzQi0PpkHlhZcC7MAH+qHka/dk5PNWWSB2aF26zPR1gbR2vH7NB/BVneiH0JsmYNfFc 4XPVVbgFzZFp4FMbRMUyiMwz+ocJcXWj3cSbpucNFKvbFRmdkZ/ljQOxB72fEvAo9Yj2C/VoTrC31 5iY8WYd75VGN39/JPWUK8oKlYWzdlXzpU1ovN8QdbrhJI9ajkAHu3j1qcAD8PrqYw01kmyJPxo0Hh gYZ50Dog==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbisN-00000005ZQP-49BE; Wed, 07 Aug 2024 15:47:00 +0000 Received: from smtp.domeneshop.no ([2a01:5b40:0:3006::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbiro-00000005ZHS-31mi for linux-arm-kernel@lists.infradead.org; Wed, 07 Aug 2024 15:46:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=fjasle.eu; s=ds202307; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject:Date:Message-ID:To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=tRmMETb/7MTV1QXR0Clr7A+ZjYv8xAw5xIefPC+Km8g=; b=o1McUFKdqARZXK+LGc9Xon/OZZ 24j/7x3GXKWGNfkEijI/F8U6fj8xMFo4kzPtc02UVpxP/9N5m+G28WExZpe40/56wiEHmKryaosKu EI8vksXXSuHrdEdJyavO66yj+Q+iq5X61CAX+NpaFRz5Yctg1tZzEhLE8yVCiRGjvJCUEPvRw/kn2 krVT44JnJFYYLntaxgYdTdB8i96vi4blU1il/nO9xT0wcZmtYUfGNu5xWr/iOqDbQcAwnPhvYcR0f V/mhK4W4QCFjIHOd/mU0855K6DFdc3PhyEI0xpV34am+jwnN3OV7rNwUtJ8vK7AWp3bf/aB+4CqZ+ Pax12xQQ==; Received: from [2001:9e8:9f8:5201:3235:adff:fed0:37e6] (port=37118 helo=lindesnes.fjasle.eu) by smtp.domeneshop.no with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1sbirg-009hPI-OI; Wed, 07 Aug 2024 17:46:16 +0200 Date: Wed, 7 Aug 2024 17:46:03 +0200 From: Nicolas Schier To: Greg Kroah-Hartman Cc: Daniel Gomez , Masahiro Yamada , Nathan Chancellor , Lucas De Marchi , Thomas =?iso-8859-1?Q?Hellstr=F6m?= , Rodrigo Vivi , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , William Hubbs , Chris Brannon , Kirk Reiser , Samuel Thibault , Paul Moore , Stephen Smalley , Ondrej Mosnacek , Catalin Marinas , Will Deacon , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , Jiri Slaby , Nick Desaulniers , Bill Wendling , Justin Stitt , "linux-kernel@vger.kernel.org" , "linux-kbuild@vger.kernel.org" , "intel-xe@lists.freedesktop.org" , "dri-devel@lists.freedesktop.org" , "speakup@linux-speakup.org" , "selinux@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "kvmarm@lists.linux.dev" , "linux-serial@vger.kernel.org" , "llvm@lists.linux.dev" , Finn Behrens , "Daniel Gomez (Samsung)" , "gost.dev@samsung.com" Subject: Re: [PATCH 08/12] include: add elf.h support Message-ID: <20240807-mottled-stoic-degu-d1e4cb@lindesnes> References: <20240807-macos-build-support-v1-0-4cd1ded85694@samsung.com> <20240807-macos-build-support-v1-8-4cd1ded85694@samsung.com> <2024080717-cross-retiree-862e@gregkh> <2024080720-skyline-recapture-d80d@gregkh> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2024080720-skyline-recapture-d80d@gregkh> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240807_084625_092026_28406F03 X-CRM114-Status: GOOD ( 16.06 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Aug 07, 2024 at 04:18:54PM +0200, Greg Kroah-Hartman wrote: > On Wed, Aug 07, 2024 at 02:13:57PM +0000, Daniel Gomez wrote: > > > Also, as this is not internal for the kernel, but rather for userspace > > > builds, shouldn't the include/ path be different? > > > > Can you suggest an alternative path or provide documentation that could help > > identify the correct location? Perhaps usr/include? > > That is better than the generic include path as you are attempting to > mix userspace and kernel headers in the same directory :( Please keep in mind, that usr/include/ currently does not hold a single header file but is used for dynamically composing the UAPI header tree. In general, I do not like the idea of keeping a elf.h file here that possibly is out-of-sync with the actual system's version (even though elf.h should not see that much changes). Might it be more helpful to provide a "development kit" for Linux devs that need to build on MacOS that provides necessary missing system header files, instead of merging those into upstream? Kind regards, Nicolas -- Nicolas