diff options
| author | 2022-08-23 13:23:07 -0700 | |
|---|---|---|
| committer | 2022-08-23 13:23:07 -0700 | |
| commit | 6234806f8c9fe93f8db99cb47fc079ce78aabbd5 (patch) | |
| tree | 42ff1f5e9642532b874f23c13e8665e6032e451b /kernel | |
| parent | Merge tag 'linux-kselftest-fixes-6.0-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest (diff) | |
| parent | module: kunit: Load .kunit_test_suites section when CONFIG_KUNIT=m (diff) | |
| download | linux-dev-6234806f8c9fe93f8db99cb47fc079ce78aabbd5.tar.xz linux-dev-6234806f8c9fe93f8db99cb47fc079ce78aabbd5.zip | |
Merge tag 'linux-kselftest-kunit-fixes-6.0-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
Pull KUnit fixes from Shuah Khan:
"Fix for a mmc test and to load .kunit_test_suites section when
CONFIG_KUNIT=m, and not just when KUnit is built-in"
* tag 'linux-kselftest-kunit-fixes-6.0-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest:
module: kunit: Load .kunit_test_suites section when CONFIG_KUNIT=m
mmc: sdhci-of-aspeed: test: Fix dependencies when KUNIT=m
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/module/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/module/main.c b/kernel/module/main.c index 6a477c622544..a4e4d84b6f4e 100644 --- a/kernel/module/main.c +++ b/kernel/module/main.c @@ -2099,7 +2099,7 @@ static int find_module_sections(struct module *mod, struct load_info *info) sizeof(*mod->static_call_sites), &mod->num_static_call_sites); #endif -#ifdef CONFIG_KUNIT +#if IS_ENABLED(CONFIG_KUNIT) mod->kunit_suites = section_objs(info, ".kunit_test_suites", sizeof(*mod->kunit_suites), &mod->num_kunit_suites); |
