Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests/timens: Make run_tests() functions static

These functions are never used outside their defining compilation unit and
can be made static.

Link: https://lore.kernel.org/r/20250502-selftests-timens-fixes-v1-2-fb517c76f04d@linutronix.de
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Reviewed-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>

authored by

Thomas Weißschuh and committed by
Shuah Khan
261639fa 84b8d6c9

+3 -3
+1 -1
tools/testing/selftests/timens/clock_nanosleep.c
··· 38 38 return NULL; 39 39 } 40 40 41 - int run_test(int clockid, int abs) 41 + static int run_test(int clockid, int abs) 42 42 { 43 43 struct timespec now = {}, rem; 44 44 struct thread_args args = { .now = &now, .rem = &rem, .clockid = clockid};
+1 -1
tools/testing/selftests/timens/timer.c
··· 15 15 #include "log.h" 16 16 #include "timens.h" 17 17 18 - int run_test(int clockid, struct timespec now) 18 + static int run_test(int clockid, struct timespec now) 19 19 { 20 20 struct itimerspec new_value; 21 21 long long elapsed;
+1 -1
tools/testing/selftests/timens/timerfd.c
··· 22 22 return clock_gettime(clockid, now); 23 23 } 24 24 25 - int run_test(int clockid, struct timespec now) 25 + static int run_test(int clockid, struct timespec now) 26 26 { 27 27 struct itimerspec new_value; 28 28 long long elapsed;