linux/tools/include/nolibc
Thomas Weißschuh 0de64754a5 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>
2025-02-03 20:57:37 +01:00
..
.gitignore tools/nolibc: Add gitignore to avoid git complaints about sysroot 2023-03-20 08:45:21 -07:00
arch-aarch64.h tools/nolibc: move entrypoint specifics to compiler.h 2024-08-12 22:21:00 +02:00
arch-arm.h tools/nolibc: move entrypoint specifics to compiler.h 2024-08-12 22:21:00 +02:00
arch-i386.h tools/nolibc: move entrypoint specifics to compiler.h 2024-08-12 22:21:00 +02:00
arch-loongarch.h tools/nolibc: move entrypoint specifics to compiler.h 2024-08-12 22:21:00 +02:00
arch-mips.h tools/nolibc: add prototypes for non-static functions 2025-02-03 20:57:37 +01:00
arch-powerpc.h tools/nolibc: move entrypoint specifics to compiler.h 2024-08-12 22:21:00 +02:00
arch-riscv.h tools/nolibc: move entrypoint specifics to compiler.h 2024-08-12 22:21:00 +02:00
arch-s390.h tools/nolibc: s390: include std.h 2024-10-07 21:56:08 +02:00
arch-x86_64.h tools/nolibc: x86_64: use local label in memcpy/memmove 2024-08-16 17:23:13 +02:00
arch.h tools/nolibc: move MIPS ABI validation into arch-mips.h 2023-12-11 22:38:21 +01:00
compiler.h tools/nolibc: compiler: add macro __nolibc_fallthrough 2024-10-07 21:56:18 +02:00
crt.h tools/nolibc: add prototypes for non-static functions 2025-02-03 20:57:37 +01:00
ctype.h tools/nolibc: fix missing includes causing build issues at -O0 2023-01-09 09:36:05 -08:00
errno.h tools/nolibc: make errno a weak symbol instead of a static one 2023-01-10 13:33:55 -08:00
Makefile tools/nolibc: add stdbool.h header 2024-07-29 07:52:57 +02:00
nolibc.h tools/nolibc: add stdbool.h header 2024-07-29 07:52:57 +02:00
signal.h tools/nolibc: add prototypes for non-static functions 2025-02-03 20:57:37 +01:00
stackprotector.h tools/nolibc: add prototypes for non-static functions 2025-02-03 20:57:37 +01:00
std.h tools/nolibc: add stdint.h 2023-03-20 08:45:21 -07:00
stdarg.h tools/nolibc: add stdarg.h header 2023-10-12 21:13:52 +02:00
stdbool.h tools/nolibc: add stdbool.h header 2024-07-29 07:52:57 +02:00
stdint.h tools/nolibc: add limits for {u,}intmax_t, ulong and {u,}llong 2024-06-29 09:44:54 +02:00
stdio.h tools/nolibc: compiler: add macro __nolibc_fallthrough 2024-10-07 21:56:18 +02:00
stdlib.h tools/nolibc: add prototypes for non-static functions 2025-02-03 20:57:37 +01:00
string.h tools/nolibc: add prototypes for non-static functions 2025-02-03 20:57:37 +01:00
sys.h tools/nolibc: add support for waitid() 2025-01-13 22:21:34 +01:00
time.h tools/nolibc: fix missing includes causing build issues at -O0 2023-01-09 09:36:05 -08:00
types.h tools/nolibc: drop custom definition of struct rusage 2023-12-11 22:38:34 +01:00
unistd.h tools/nolibc: unistd.h: reorder the syscall macros 2023-08-06 12:27:53 +02:00