Commit 261639fa authored by Thomas Weißschuh's avatar Thomas Weißschuh Committed by Shuah Khan
Browse files

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: default avatarThomas Weißschuh <thomas.weissschuh@linutronix.de>
Reviewed-by: default avatarMuhammad Usama Anjum <usama.anjum@collabora.com>
Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
parent 84b8d6c9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -38,7 +38,7 @@ void *call_nanosleep(void *_args)
	return NULL;
}

int run_test(int clockid, int abs)
static int run_test(int clockid, int abs)
{
	struct timespec now = {}, rem;
	struct thread_args args = { .now = &now, .rem = &rem, .clockid = clockid};
+1 −1
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@
#include "log.h"
#include "timens.h"

int run_test(int clockid, struct timespec now)
static int run_test(int clockid, struct timespec now)
{
	struct itimerspec new_value;
	long long elapsed;
+1 −1
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@ static int tclock_gettime(clock_t clockid, struct timespec *now)
	return clock_gettime(clockid, now);
}

int run_test(int clockid, struct timespec now)
static int run_test(int clockid, struct timespec now)
{
	struct itimerspec new_value;
	long long elapsed;