selftests/mm: ksft_exit functions do not return
authorNathan Chancellor <nathan@kernel.org>
Wed, 24 Apr 2024 17:24:07 +0000 (10:24 -0700)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 6 May 2024 19:57:20 +0000 (13:57 -0600)
commit69e545edbe8b17c26aa06ef7e430d0be7f08d876
treefa58d41b98142387d06d02e1f4a656cb6d6a339c
parenta9c91ecddc76fe7900213bf090d5df4035802cba
selftests/mm: 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>
tools/testing/selftests/mm/compaction_test.c
tools/testing/selftests/mm/cow.c
tools/testing/selftests/mm/gup_longterm.c
tools/testing/selftests/mm/gup_test.c
tools/testing/selftests/mm/ksm_functional_tests.c
tools/testing/selftests/mm/madv_populate.c
tools/testing/selftests/mm/mkdirty.c
tools/testing/selftests/mm/pagemap_ioctl.c
tools/testing/selftests/mm/soft-dirty.c