kbuild: uapi: provide stub includes for some libc headersSome UAPI headers incorrectly use libc headers. To compile-test theseUAPI headers, their respective libc dependencies need to be present.N
kbuild: uapi: provide stub includes for some libc headersSome UAPI headers incorrectly use libc headers. To compile-test theseUAPI headers, their respective libc dependencies need to be present.Not all kernel toolchains provide these headers, reducing test coverage.Introduce some stub headers which provide just enough symbols to testall UAPI headers. Most headers are empty anyways, as their symbols areonly used in macros which are not actually evaluated.As these headers are only ever used with newer kernel toolchains, theycan defer to compiler builtins in many cases.As more UAPI headers are cleaned up to not require these stubs anymore,they can be removed again.Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>Reviewed-by: Nathan Chancellor <nathan@kernel.org>Reviewed-by: Nicolas Schier <nsc@kernel.org>Tested-by: Nicolas Schier <nsc@kernel.org>Acked-by: Arnd Bergmann <arnd@arndb.de>Link: https://patch.msgid.link/20260227-kbuild-uapi-libc-v1-6-c17de0d19776@weissschuh.netSigned-off-by: Nicolas Schier <nsc@kernel.org>
show more ...