]> www.infradead.org Git - users/hch/misc.git/commit
selftests: harness: Mark functions without prototypes static
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Mon, 5 May 2025 15:15:22 +0000 (17:15 +0200)
committerThomas Weißschuh <linux@weissschuh.net>
Tue, 13 May 2025 05:35:49 +0000 (07:35 +0200)
commitd8b5290adb4f60c6a19f3c72bf24c6573a6f8cfb
treee4c3d769807a4a87c2a2b48be6511ecc1bb46d05
parent9601b34d14c627beb7730aefabd8216339da1c22
selftests: harness: Mark functions without prototypes static

With -Wmissing-prototypes the compiler will warn about non-static
functions which don't have a prototype defined.
As they are not used from a different compilation unit they don't need to
be defined globally.

Avoid the issue by marking the functions static.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Reviewed-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Link: https://lore.kernel.org/r/20250505-nolibc-kselftest-harness-v4-4-ee4dd5257135@linutronix.de
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
tools/testing/selftests/kselftest_harness.h