summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/timers/skew_consistency.c
diff options
context:
space:
mode:
authorNathan Chancellor <nathan@kernel.org>2024-04-24 10:24:11 -0700
committerShuah Khan <skhan@linuxfoundation.org>2024-05-06 13:57:21 -0600
commitbc7e5d23be8925c3049f0232f83e2118e1cf373b (patch)
tree8310ac2a10ac7259afdefc49c69cd1bcd7e32600 /tools/testing/selftests/timers/skew_consistency.c
parent102690be45b9345d7c3d8f578dae2e51c02b794c (diff)
downloadlinux-stable-bc7e5d23be8925c3049f0232f83e2118e1cf373b.tar.gz
linux-stable-bc7e5d23be8925c3049f0232f83e2118e1cf373b.tar.bz2
linux-stable-bc7e5d23be8925c3049f0232f83e2118e1cf373b.zip
selftests: timers: ksft_exit functions do not return
After commit f7d5bcd35d42 ("selftests: kselftest: Mark functions that unconditionally call exit() as __noreturn"), ksft_exit_...() functions are marked as __noreturn, which means the return type should not be 'int' but 'void' because they are not returning anything (and never were since exit() has always been called). To facilitate updating the return type of these functions, remove 'return' before the calls to ksft_exit_...(), as __noreturn prevents the compiler from warning that a caller of the ksft_exit functions does not return a value because the program will terminate upon calling these functions. Reviewed-by: Muhammad Usama Anjum <usama.anjum@collabora.com> Reviewed-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Nathan Chancellor <nathan@kernel.org> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/timers/skew_consistency.c')
-rw-r--r--tools/testing/selftests/timers/skew_consistency.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/timers/skew_consistency.c b/tools/testing/selftests/timers/skew_consistency.c
index 63913f75b384..c8e6bffe4e0a 100644
--- a/tools/testing/selftests/timers/skew_consistency.c
+++ b/tools/testing/selftests/timers/skew_consistency.c
@@ -70,8 +70,8 @@ int main(int argc, char **argv)
if (ret) {
printf("[FAILED]\n");
- return ksft_exit_fail();
+ ksft_exit_fail();
}
printf("[OK]\n");
- return ksft_exit_pass();
+ ksft_exit_pass();
}