]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
kbuild: uapi: provide a C++ compatible dummy definition of NULL
authorThomas Weißschuh <linux@weissschuh.net>
Mon, 16 Mar 2026 16:52:01 +0000 (17:52 +0100)
committerNicolas Schier <nsc@kernel.org>
Wed, 25 Mar 2026 12:24:41 +0000 (13:24 +0100)
commitb187c1a1a0513593663b1adee0340d41d833d16d
treedad7624a0c9508f87875fb3c72d57db65919ff77
parentb4ec38cb739e9419ddb7310f6c49fb6d7bc39c1d
kbuild: uapi: provide a C++ compatible dummy definition of NULL

NULL works differently in C++ compared to C.

To allow testing the UAPI headers against C++ compilers, provide
a variant of NULL which works with those.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Link: https://patch.msgid.link/20260316-kbuild-uapi-c-v2-4-35d6d0ed863f@weissschuh.net
Signed-off-by: Nicolas Schier <nsc@kernel.org>
usr/dummy-include/stddef.h