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 2B971C3DA7F for ; Wed, 7 Aug 2024 15:39:48 +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=fGlMApxeReVSP5e96DejXHnM7BqtFE0t1NLvKtj+CC8=; b=ErZiQwvYQIoshYUVd/jTzuAWVK G1v6QXvU0m0XwqXDN/8Qa6eX+aZbgDKGU7s/d38EndvQ3n1XWgYgeAGoBnYUV8UL1x3dkbESe9Q5v 043hDj8pMb6jDW/lkNmfvPfLootYn3A0eHWKAy1PMoBeAKxpicFiTlAUsZYiiX+bCockBTpgKyw8d IbRU+jsrxM29hklNyrzllNX1sU77MEChyjj7yy5oFaGTC8lCk5IA+hkZ5z/fgjsLJPDTydOlX1zNm Tg0op17qbsIKuSUZaGniKpUbbmwo42l7DIwGIGHtTJfBtgFA4CJ8//CM979i9jkxI3ayusCquHPCN y06rvKOA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbil9-00000005Y2J-1Byj; Wed, 07 Aug 2024 15:39:31 +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 1sbikY-00000005Xxv-41uP for linux-arm-kernel@lists.infradead.org; Wed, 07 Aug 2024 15:38:59 +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=fGlMApxeReVSP5e96DejXHnM7BqtFE0t1NLvKtj+CC8=; b=htepBJlSv3TXweGvYd1e/IcXP9 4aO+giJbJx58b60SZVRn3eji+s+y9amraDXY4LVEUteLM7SR02UOpc8vukAhiNM3hLIxKcJPAkmbJ zRZlFecOIxqHiPW1wPgHUTJDyiPHiqz5F+w354386gFDlGa0PApMHGWAbO/XXxmhZbNDLTC8xy/yx 0Ptc+QPZL+VInnSrxKunCnIMQAB3N2fmTMC1GL0Rr7F4qPUyMPZl0hEXNUHrg640wDwe3YPXBkLV0 bQ8Bs3liwACPMSV89v3xmItYRDrloNNvcxplq9DgWCFQGIciJiObO9xXxkqPzeBNIbBB+VjiDh915 vni9YOpQ==; Received: from [2001:9e8:9f8:5201:3235:adff:fed0:37e6] (port=41026 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 1sbikQ-009fVq-7r; Wed, 07 Aug 2024 17:38:46 +0200 Date: Wed, 7 Aug 2024 17:38:28 +0200 From: Nicolas Schier To: da.gomez@samsung.com Cc: 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 , Greg Kroah-Hartman , 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 06/12] selinux/genheaders: include bitsperlong and posix_types headers Message-ID: <20240807-outgoing-charcoal-collie-0ee37e@lindesnes> References: <20240807-macos-build-support-v1-0-4cd1ded85694@samsung.com> <20240807-macos-build-support-v1-6-4cd1ded85694@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240807-macos-build-support-v1-6-4cd1ded85694@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240807_083857_103596_A19282BA X-CRM114-Status: GOOD ( 17.19 ) 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 01:09:20AM +0200, Daniel Gomez via B4 Relay wrote: > From: Daniel Gomez > > The genheaders requires the bitsperlong.h and posix_types.h headers. > To ensure these headers are found during compilation on macOS hosts, > add usr/include to HOST_EXTRACFLAGS in the genheaders Makefile. This > adjustment allows the compiler to locate all necessary headers when they > are not available by default on macOS. > > Signed-off-by: Daniel Gomez > --- > scripts/selinux/genheaders/Makefile | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/scripts/selinux/genheaders/Makefile b/scripts/selinux/genheaders/Makefile > index 1faf7f07e8db..017149c90f8e 100644 > --- a/scripts/selinux/genheaders/Makefile > +++ b/scripts/selinux/genheaders/Makefile > @@ -2,4 +2,5 @@ > hostprogs-always-y += genheaders > HOST_EXTRACFLAGS += \ > -I$(srctree)/include/uapi -I$(srctree)/include \ > - -I$(srctree)/security/selinux/include > + -I$(srctree)/security/selinux/include \ > + -I$(srctree)/usr/include 'make headers' composes the UAPI header tree in $(objtree)/usr/include. So, if you build out-of-source, -I$(srctree)/usr/include will not match. Just remove the '$(srctree)/' prefix as '$(objtree)/' is always '.'. But I am suspecting that this break cross-building. Kind regards, Nicolas