]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
check-uapi: use dummy libc includes
authorArnd Bergmann <arnd@arndb.de>
Fri, 6 Mar 2026 16:33:09 +0000 (17:33 +0100)
committerNicolas Schier <nsc@kernel.org>
Fri, 20 Mar 2026 20:43:56 +0000 (21:43 +0100)
Based on Thomas Weißschuh's series to kernel headers to no longer require
an installed libc when build testing the uapi headers, the same can now
be done for the scripts/check-uapi.sh script.

The only required change here is to add the  usr/dummy-include include
path.

Link: https://lore.kernel.org/lkml/20260227-kbuild-uapi-libc-v1-0-c17de0d19776@weissschuh.net/
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Nathan Chancellor <nathan@kernel.org>
Link: https://patch.msgid.link/20260306163309.2015837-4-arnd@kernel.org
Signed-off-by: Nicolas Schier <nsc@kernel.org>
scripts/check-uapi.sh

index e4d120eb09e340fd3eaa6e5c48b8900e51febccc..c8beec58871c9f82cdf42d61d518f0a523b9841b 100755 (executable)
@@ -191,6 +191,7 @@ do_compile() {
                  -fno-eliminate-unused-debug-types \
                  -g \
                  "-I${inc_dir}" \
+                 "-Iusr/dummy-include" \
                  -include "$header" \
                  -
 }