From nobody Thu Apr 9 13:37:44 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 B6EFE3D34B8; Fri, 27 Feb 2026 06:38: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=1772174289; cv=none; b=HkHuTf23LNBi3VrwIv8y3jFaPfQI42MAAIF0p+IUGjGDYrjqL47BmG0q62CapG9Oj0LBMitpaNSY2gDxy9KjnOoxvx185MWEWmdKNUqSFnN3yyTWTst0QwUifGCvpQC1nxwOSa8A8j02AmZ/WRQuR72bWvm19piVe9Ig6jZ4OJI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772174289; c=relaxed/simple; bh=5euz4oG3DtJPSjkMeCCtIJ6pr0AEmkKUMdnkYJbyKiU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=br/gnTYmruu4zhiiu9RAQohQF9KXpbIzmDiE9LFwAIqcnnEHkj9BmjEN2hB/NBLKSLYGyICauWVSeyG/qnUNxw3JdHtd0NK9euYoBSnNQsXKIhR3HM1kGvTISwc1iD1ipoC/RnugQOia/YnEz3NGPp16Mpj2+lP6ka1GVP6Iip4= 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=YQQ4yYiI; 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="YQQ4yYiI" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1772174283; bh=5euz4oG3DtJPSjkMeCCtIJ6pr0AEmkKUMdnkYJbyKiU=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=YQQ4yYiIjIAD+o6Q5RxbDzqQV9hkj+dVsu54d604cJsYp3QAySghPlegyl/2fbNyF XHrfycI0rkcCOTYrnScBLQUjGpuBVIHVEENPisMJAcJQ+cYzOteHiS24Hv0Dg1aQ0S GoOSyGm/zBH/5JIEx7DJFSW5gZg9rq48a7EQ+pSo= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Fri, 27 Feb 2026 07:38:05 +0100 Subject: [PATCH 7/9] kbuild: uapi: use custom stub headers instead of libc ones 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: <20260227-kbuild-uapi-libc-v1-7-c17de0d19776@weissschuh.net> References: <20260227-kbuild-uapi-libc-v1-0-c17de0d19776@weissschuh.net> In-Reply-To: <20260227-kbuild-uapi-libc-v1-0-c17de0d19776@weissschuh.net> To: Nathan Chancellor , Nicolas Schier , Brian Cain Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann , linux-hexagon@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1772174282; l=1306; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=5euz4oG3DtJPSjkMeCCtIJ6pr0AEmkKUMdnkYJbyKiU=; b=fcz9Q164tToL+6VPjEC2UrR6k3HEnDMCnBW+p97brquheut3aeHcsyamnoqiSgTKR6kXl/cLT R5aNcFE4mOuBS9rVXDAW3gqM73mpxnrfLudB4J/qEaLxysmoqWnRwhx X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= Now that custom stub headers are provided for all libc headers used from the UAPI headers, the dependency on the toolchain libc can be dropped. Signed-off-by: Thomas Wei=C3=9Fschuh --- usr/include/Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/usr/include/Makefile b/usr/include/Makefile index fdc79cffcc97..d352280b0e4a 100644 --- a/usr/include/Makefile +++ b/usr/include/Makefile @@ -138,14 +138,13 @@ endif always-y :=3D $(patsubst $(obj)/%.h,%.hdrtest, $(shell find $(obj) -name '= *.h' 2>/dev/null)) =20 target-no-libc =3D $(filter-out $(uses-libc), $*.h) -target-can-compile =3D $(and $(filter-out $(no-header-test), $*.h), \ - $(or $(CONFIG_CC_CAN_LINK), $(target-no-libc))) +target-can-compile =3D $(filter-out $(no-header-test), $*.h) =20 # 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 \ - $(if $(target-no-libc), -nostdinc, -I $(srctree)/usr/dummy-include) \ + -nostdinc $(if $(target-no-libc), , -I $(srctree)/usr/dummy-include) \ $(if $(target-can-compile), -include $< -include $<); \ $(PERL) $(src)/headers_check.pl $(obj) $<; \ touch $@ --=20 2.53.0