linux-stable/tools/testing/selftests/membarrier
Nathan Chancellor a9c91ecddc selftests: membarrier: 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 calls 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.

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:20 -06:00
..
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
Makefile selftests: membarrier: Fix incorrect kernel headers search path 2023-02-13 09:09:45 -07:00
membarrier_test_impl.h selftests/membarrier: Test MEMBARRIER_CMD_GET_REGISTRATIONS 2023-01-07 11:29:29 +01:00
membarrier_test_multi_thread.c selftests: membarrier: ksft_exit_pass() does not return 2024-05-06 13:57:20 -06:00
membarrier_test_single_thread.c selftests: membarrier: ksft_exit_pass() does not return 2024-05-06 13:57:20 -06:00