]> git.baikalelectronics.ru Git - kernel.git/commit
kunit: add support for kunit_suites that reference init code
authorBrendan Higgins <brendanhiggins@google.com>
Tue, 19 Apr 2022 04:05:15 +0000 (21:05 -0700)
committerShuah Khan <skhan@linuxfoundation.org>
Wed, 27 Apr 2022 00:08:25 +0000 (18:08 -0600)
commit3930f12a29b2225c8e805852f55995ca32db120f
tree52e387d519c62ee9ee5147013ac8ed9008496814
parentc1927798191c290d318425491d47cc90fd1c5555
kunit: add support for kunit_suites that reference init code

Add support for a new kind of kunit_suite registration macro called
kunit_test_init_section_suite(); this new registration macro allows the
registration of kunit_suites that reference functions marked __init and
data marked __initdata.

Signed-off-by: Brendan Higgins <brendanhiggins@google.com>
Tested-by: Martin Fernandez <martin.fernandez@eclypsium.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
include/kunit/test.h