summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/timens/timerfd.c
diff options
context:
space:
mode:
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>2025-05-02 14:03:51 +0200
committerShuah Khan <skhan@linuxfoundation.org>2025-05-09 13:12:48 -0600
commit261639fa515fd4c5d14ad998f85f1e30c3241dfb (patch)
treea830d594dac78236fa5b53ac58c421852453bb9b /tools/testing/selftests/timens/timerfd.c
parent84b8d6c9082659ceb5574335abbaf6c1ea36abba (diff)
downloadlwn-261639fa515fd4c5d14ad998f85f1e30c3241dfb.tar.gz
lwn-261639fa515fd4c5d14ad998f85f1e30c3241dfb.zip
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>
Diffstat (limited to 'tools/testing/selftests/timens/timerfd.c')
-rw-r--r--tools/testing/selftests/timens/timerfd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/timens/timerfd.c b/tools/testing/selftests/timens/timerfd.c
index e58bc8b64ce2..d6adf66bd8df 100644
--- a/tools/testing/selftests/timens/timerfd.c
+++ b/tools/testing/selftests/timens/timerfd.c
@@ -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;