]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tools/nolibc: add prototypes for non-static functions
authorThomas Weißschuh <linux@weissschuh.net>
Thu, 23 Jan 2025 20:10:42 +0000 (21:10 +0100)
committerThomas Weißschuh <linux@weissschuh.net>
Mon, 3 Feb 2025 19:57:37 +0000 (20:57 +0100)
commit0de64754a55470adb0a870f3105c8922334bb6fe
tree363d7546e4d174e9e19298aa6497c756f4adf829
parent2014c95afecee3e76ca4a56956a936e23283f05b
tools/nolibc: add prototypes for non-static functions

With -Wmissing-prototypes the compiler will warn about non-static
functions which don't have a prototype defined.
This warning doesn't make much sense for nolibc itself but for user code
it is still useful.
To pacify the compiler add prototypes next to the function definitions,
similar to how it is handled elsewhere in the kernel.

Acked-by: Willy Tarreau <w@1wt.eu>
Link: https://lore.kernel.org/r/20250123-nolibc-prototype-v1-1-e1afc5c1999a@weissschuh.net
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
tools/include/nolibc/arch-mips.h
tools/include/nolibc/crt.h
tools/include/nolibc/signal.h
tools/include/nolibc/stackprotector.h
tools/include/nolibc/stdlib.h
tools/include/nolibc/string.h