Skip to content

Commit 261639f

Browse files
t-8chshuahkh
authored andcommitted
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/[email protected] Signed-off-by: Thomas Weißschuh <[email protected]> Reviewed-by: Muhammad Usama Anjum <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent 84b8d6c commit 261639f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tools/testing/selftests/timens/clock_nanosleep.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ void *call_nanosleep(void *_args)
3838
return NULL;
3939
}
4040

41-
int run_test(int clockid, int abs)
41+
static int run_test(int clockid, int abs)
4242
{
4343
struct timespec now = {}, rem;
4444
struct thread_args args = { .now = &now, .rem = &rem, .clockid = clockid};

tools/testing/selftests/timens/timer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include "log.h"
1616
#include "timens.h"
1717

18-
int run_test(int clockid, struct timespec now)
18+
static int run_test(int clockid, struct timespec now)
1919
{
2020
struct itimerspec new_value;
2121
long long elapsed;

tools/testing/selftests/timens/timerfd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ static int tclock_gettime(clock_t clockid, struct timespec *now)
2222
return clock_gettime(clockid, now);
2323
}
2424

25-
int run_test(int clockid, struct timespec now)
25+
static int run_test(int clockid, struct timespec now)
2626
{
2727
struct itimerspec new_value;
2828
long long elapsed;

0 commit comments

Comments
 (0)