summaryrefslogtreecommitdiff
path: root/lib/kunit/executor.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2026-10-22 08:23:28 -1000
committerLinus Torvalds <torvalds@linux-foundation.org>2026-10-22 08:23:28 -1000
commit2a08195e4db5aba84600db6518089a1dbe2d04c7 (patch)
tree5053309d3c336648459a7673be388b3d5fd23355 /lib/kunit/executor.c
parent968de9d17980a0e538fc4e4394af49465294386d (diff)
parente38f53f0482468efd04397f66bda4648b70ac9fa (diff)
Merge tag 'linux_kselftest-kunit-7.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
Pull kunit update from Shuah Khan: "A single fix to kunit_run_all_tests() to return void since callers don't check the return value and the integer return type is a remnant from when the function was executed as initcall which is no longer the case" * tag 'linux_kselftest-kunit-7.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest: kunit: Return void from kunit_run_all_tests()
Diffstat (limited to 'lib/kunit/executor.c')
-rw-r--r--lib/kunit/executor.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/kunit/executor.c b/lib/kunit/executor.c
index b0f8a41d61d3..c798a02470d8 100644
--- a/lib/kunit/executor.c
+++ b/lib/kunit/executor.c
@@ -371,7 +371,7 @@ static void kunit_handle_shutdown(void)
}
-int kunit_run_all_tests(void)
+void kunit_run_all_tests(void)
{
struct kunit_suite_set suite_set = {NULL, NULL};
struct kunit_suite_set filtered_suite_set = {NULL, NULL};
@@ -382,7 +382,7 @@ int kunit_run_all_tests(void)
__kunit_suites_start, __kunit_suites_end,
};
size_t init_num_suites = init_suite_set.end - init_suite_set.start;
- int err = 0;
+ int err;
if (init_num_suites > 0) {
suite_set = kunit_merge_suite_sets(init_suite_set, normal_suite_set);
@@ -432,7 +432,6 @@ free_out:
out:
kunit_handle_shutdown();
- return err;
}
#if IS_BUILTIN(CONFIG_KUNIT_TEST)