From nobody Thu Apr 9 13:37:42 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 8A9DB36493C; Fri, 27 Feb 2026 06:38:05 +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=1772174286; cv=none; b=Di/jCNBGcuWGk7YfeOeF3pNqe3Ns3DoJvIftpNS65GQUmfF6xXsA2XNLVJxnLbeAfGmu18KH6WO2WvoCfL6UsBwSM3HARbTY0zKQUoy58Z8MSbYAxnX9NlSPzT8g8RxbWiyo3Mt1QopWolq/Qhr9UMlWwd8HiNOgpTaerqRV878= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772174286; c=relaxed/simple; bh=o8GAc9X7vTYuGqD0kl7IxEia6dLJdWHxFZArSAvnNcA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=qWNR4FBtkrl41a5DhH1pYbxzUqKmTtmF8jIYioYhtdnm3UWrQQd39sUGoWqx59GWnwHs5YDUVNTsddL0ER1ChI60QnbC0WGE6t6h8mXIVXNArjfDUD6Xt1X4gn+iyTru+2p4fTY8/cNOdsVeOn5RSvGKz1PT39gxAekUf/i9cDo= 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=nGlfX5dZ; 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="nGlfX5dZ" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1772174283; bh=o8GAc9X7vTYuGqD0kl7IxEia6dLJdWHxFZArSAvnNcA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=nGlfX5dZy4ZwFblK3X9+eCti0WS7QDn4O8mLne8ZehqYkV153228rt4a64P6UMvdw hTv4PHgQtfPOwwudGfxgLo2M+j8iCt6NoyG8ZGR7jKWyTm8EhHY7SvDZrk3OIz5qbg uY8pJOrWfSGjyi7c7W7Ne3PsVMNyQ8C2w8hsvmQ8= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Fri, 27 Feb 2026 07:38:03 +0100 Subject: [PATCH 5/9] kbuild: uapi: only use dummy-include for headers which use libc 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-5-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=1322; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=o8GAc9X7vTYuGqD0kl7IxEia6dLJdWHxFZArSAvnNcA=; b=hbg6GN/STo4hUupuF5YD0wP6Sfo7x3vG0cC6WY87paYSM+7xFhzUJ4Ni/JgniZHnLm07cb7BG 1HI2TcezfHGD/j3WFGdZGwiUkhzGsoFQBkVCKKctMHiOfGxQFa6ZPyA X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= The headers which do not rely on libc are using built using -nostdinc. For them the dummy headers are pointless. Signed-off-by: Thomas Wei=C3=9Fschuh --- usr/include/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/include/Makefile b/usr/include/Makefile index a8619aa85c87..fdc79cffcc97 100644 --- a/usr/include/Makefile +++ b/usr/include/Makefile @@ -8,7 +8,7 @@ # We cannot go as far as adding -Wpedantic since it emits too many warning= s. UAPI_CFLAGS :=3D -std=3Dc90 -Werror=3Dimplicit-function-declaration =20 -override c_flags =3D $(KBUILD_USERCFLAGS) $(UAPI_CFLAGS) -Wp,-MMD,$(depfil= e) -I $(obj) -I $(srctree)/usr/dummy-include +override c_flags =3D $(KBUILD_USERCFLAGS) $(UAPI_CFLAGS) -Wp,-MMD,$(depfil= e) -I $(obj) =20 # The following are excluded for now because they fail to build. # @@ -145,7 +145,7 @@ target-can-compile =3D $(and $(filter-out $(no-header-t= est), $*.h), \ quiet_cmd_hdrtest =3D HDRTEST $< cmd_hdrtest =3D \ $(CC) $(c_flags) -fsyntax-only -Werror -x c /dev/null \ - $(if $(target-no-libc), -nostdinc) \ + $(if $(target-no-libc), -nostdinc, -I $(srctree)/usr/dummy-include) \ $(if $(target-can-compile), -include $< -include $<); \ $(PERL) $(src)/headers_check.pl $(obj) $<; \ touch $@ --=20 2.53.0