linux-next/tools/testing/selftests/sync
Nathan Chancellor 102690be45 selftests: sync: ksft_exit_pass() does not return
After commit f7d5bcd35d ("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 call to ksft_exit_pass(), as __noreturn prevents the
compiler from warning that a caller of ksft_exit_pass() does not return
a value because the program will terminate upon calling these functions
(which is what the comment alluded to as well).

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>
2024-05-06 13:57:21 -06:00
..
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
config remove CONFIG_ANDROID 2022-07-01 10:41:09 +02:00
Makefile selftests: sync: Fix incorrect kernel headers search path 2023-02-13 09:09:45 -07:00
sw_sync.h
sync_alloc.c
sync_fence.c selftest: sync: fence tests for sw_sync framework 2016-12-01 18:12:59 -07:00
sync_merge.c selftest: sync: merge tests for sw_sync framework 2016-12-01 18:13:06 -07:00
sync_stress_consumer.c selftest: sync: stress consumer/producer test 2016-12-01 18:13:25 -07:00
sync_stress_merge.c selftest: sync: stress test for merges 2016-12-01 18:13:32 -07:00
sync_stress_parallelism.c selftest: sync: stress test for parallelism 2016-12-01 18:13:19 -07:00
sync_test.c selftests: sync: ksft_exit_pass() does not return 2024-05-06 13:57:21 -06:00
sync_wait.c selftest: sync: wait tests for sw_sync framework 2016-12-01 18:13:12 -07:00
sync.c selftests: sync: Fix cast warnings on arm 2019-11-07 14:54:37 -07:00
sync.h
synctest.h selftests: sync: convert to use TAP13 ksft framework 2017-07-28 13:20:29 -06:00