mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
kunit: Return void from kunit_run_all_tests()
No caller tests the return value of this function.
The integer return type is still a remnant from when the function
was executed as initcall. This usage however was removed in
commit 8c0d884986 ("init: main: add KUnit to kernel init")
Link: https://lore.kernel.org/r/20260901-kunit-void-v1-1-c91952391d66@linutronix.de
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Reviewed-by: David Gow <david@davidgow.net>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
This commit is contained in:
parent
cee9395acd
commit
e38f53f048
|
|
@ -400,11 +400,10 @@ struct kunit_suite_set kunit_merge_suite_sets(struct kunit_suite_set init_suite_
|
|||
const void *kunit_array_gen_params(struct kunit *test, const void *prev, char *desc);
|
||||
|
||||
#if IS_BUILTIN(CONFIG_KUNIT)
|
||||
int kunit_run_all_tests(void);
|
||||
void kunit_run_all_tests(void);
|
||||
#else
|
||||
static inline int kunit_run_all_tests(void)
|
||||
static inline void kunit_run_all_tests(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
#endif /* IS_BUILTIN(CONFIG_KUNIT) */
|
||||
|
||||
|
|
|
|||
|
|
@ -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 @@ int kunit_run_all_tests(void)
|
|||
|
||||
out:
|
||||
kunit_handle_shutdown();
|
||||
return err;
|
||||
}
|
||||
|
||||
#if IS_BUILTIN(CONFIG_KUNIT_TEST)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user