]> git.ipfire.org Git - thirdparty/linux.git/commit
tools/nolibc: avoid using plain integer as NULL pointer
authorThomas Weißschuh <linux@weissschuh.net>
Sun, 9 Nov 2025 19:27:29 +0000 (20:27 +0100)
committerThomas Weißschuh <linux@weissschuh.net>
Sun, 9 Nov 2025 20:29:57 +0000 (21:29 +0100)
commit2d8482959efee5721456d199106b9c256c11b11b
tree6c8edf56d391f85955a4a759c3ad0cde2a7af3d7
parent107eb8336e8782ae8e98b60962852a1e29aca715
tools/nolibc: avoid using plain integer as NULL pointer

While an integer zero is a valid NULL pointer as per the C standard,
sparse will complain about it.

Use explicit NULL pointers instead.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/r/202509261452.g5peaXCc-lkp@intel.com/
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Willy Tarreau <w@1wt.eu>
tools/include/nolibc/getopt.h
tools/include/nolibc/sys.h
tools/include/nolibc/sys/reboot.h
tools/include/nolibc/unistd.h