]> www.infradead.org Git - users/hch/misc.git/commit
selftests/timens: timerfd: Use correct clockid type in tclock_gettime()
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Fri, 2 May 2025 12:03:52 +0000 (14:03 +0200)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 9 May 2025 19:12:57 +0000 (13:12 -0600)
commit1efe2022286d30077385ba9b24d25c26c77d0768
tree99afa31b46629a66add258de8af13dec82090fcc
parent261639fa515fd4c5d14ad998f85f1e30c3241dfb
selftests/timens: timerfd: Use correct clockid type in tclock_gettime()

tclock_gettime() is a wrapper around clock_gettime().
The first parameter of clock_gettime() is of type "clockid_t",
not "clock_t".

Use the correct type instead.

Link: https://lore.kernel.org/r/20250502-selftests-timens-fixes-v1-3-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>
tools/testing/selftests/timens/timerfd.c