From nobody Tue Apr 7 05:44:51 2026 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3BCC53CEB86; Mon, 16 Mar 2026 16:52:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.69.126.157 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773679929; cv=none; b=rkEKDHT1IeoqSL1tnK+tLzwyc1+y9k5r4PpM6Mj9xMvl5DeEsHcEQLxK0lq2vHCGzIjsw4F++7mpG8cFsrnE2f1tzy5JoGiLyPDptPD1DRdPMf7grY0oCTjeGRA+7YHHv+3cC7EVTVNIkFQ1VGYSw3TynE3UBpTA/QI/2ZXVPJk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773679929; c=relaxed/simple; bh=KJB6ACbqbsbmqAxi4TNeW9jRlGOcSgydMfqFKK95WM0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=MDJU1UNKdcVmrnffh/Pk8Eyv9t+wC66+sh2S96MBF8cVFWFMGf5/VDxEibwM4ZIPtQNN9wv5BU0KcEZEURBP/de2dgXiADfc35dh6nerOegGiuJdV2cVelWi0ehV83t+r5vZ4KeGpRo2z/4EJzxXX7aXaXBkUGVbc5O+qD0KTpM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net; spf=pass smtp.mailfrom=weissschuh.net; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b=Tkv29Ver; arc=none smtp.client-ip=159.69.126.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="Tkv29Ver" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1773679918; bh=KJB6ACbqbsbmqAxi4TNeW9jRlGOcSgydMfqFKK95WM0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=Tkv29VerNzJM2z4+etbifZRwjYB7nHEqIV3H1eSBwOhkJKHRO8GTCG+h0RYRiPhQu 3F2huUhuylpG9JYmdulttgKuL0GaXz41LEqcs5mRxM4h6nlFm7J5G8khXfJ0/9soFt UyRaqHZfYe/KSV/TVYR6vrxYn0KJHU2KUD902vg4= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Mon, 16 Mar 2026 17:51:58 +0100 Subject: [PATCH v2 1/5] kbuild: uapi: move some compiler arguments out of the command definition Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260316-kbuild-uapi-c-v2-1-35d6d0ed863f@weissschuh.net> References: <20260316-kbuild-uapi-c-v2-0-35d6d0ed863f@weissschuh.net> In-Reply-To: <20260316-kbuild-uapi-c-v2-0-35d6d0ed863f@weissschuh.net> To: Arnd Bergmann , Nathan Chancellor , Nicolas Schier Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, David Howells , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1773679918; l=1303; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=KJB6ACbqbsbmqAxi4TNeW9jRlGOcSgydMfqFKK95WM0=; b=xRx+cpWD98y2DtwtWIeIZxMbitA+oMdD9s5V8wsXoG30KJKodjJY1DSJy5ULwXM/k14WVJyMS zzgSl24fQBmDFkNkSr4qBC+36TxLckkD5D5kkDLMlJSDyDMnKPzo2T/ X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= Simplify the definition of cmd_hdrtest by moving some of it to a new variable. This will both enable the upcoming reuse of those flags and also the extension of cmd_hdrtest. Signed-off-by: Thomas Wei=C3=9Fschuh Reviewed-by: Nathan Chancellor --- usr/include/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/usr/include/Makefile b/usr/include/Makefile index 845d06b63c2b..0b1c9a4b0477 100644 --- a/usr/include/Makefile +++ b/usr/include/Makefile @@ -140,11 +140,13 @@ always-y :=3D $(patsubst $(obj)/%.h,%.hdrtest, $(shel= l find $(obj) -name '*.h' 2>/ target-libc =3D $(filter $(uses-libc), $*.h) target-can-compile =3D $(filter-out $(no-header-test), $*.h) =20 +hdrtest-flags =3D -fsyntax-only -Werror \ + -nostdinc $(if $(target-libc), -I $(srctree)/usr/dummy-include) + # Include the header twice to detect missing include guard. quiet_cmd_hdrtest =3D HDRTEST $< cmd_hdrtest =3D \ - $(CC) $(c_flags) -fsyntax-only -Werror -x c /dev/null \ - -nostdinc $(if $(target-libc), -I $(srctree)/usr/dummy-include) \ + $(CC) $(c_flags) $(hdrtest-flags) -x c /dev/null \ $(if $(target-can-compile), -include $< -include $<); \ $(PERL) $(src)/headers_check.pl $(obj) $<; \ touch $@ --=20 2.53.0