Skip to content

Commit 6234806

Browse files
committed
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
2 parents 3ee3d98 + 41a5556 commit 6234806

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/mmc/host/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ config MMC_SDHCI_OF_ASPEED
171171
config MMC_SDHCI_OF_ASPEED_TEST
172172
bool "Tests for the ASPEED SDHCI driver" if !KUNIT_ALL_TESTS
173173
depends on MMC_SDHCI_OF_ASPEED && KUNIT
174+
depends on (MMC_SDHCI_OF_ASPEED=m || KUNIT=y)
174175
default KUNIT_ALL_TESTS
175176
help
176177
Enable KUnit tests for the ASPEED SDHCI driver. Select this

kernel/module/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2099,7 +2099,7 @@ static int find_module_sections(struct module *mod, struct load_info *info)
20992099
sizeof(*mod->static_call_sites),
21002100
&mod->num_static_call_sites);
21012101
#endif
2102-
#ifdef CONFIG_KUNIT
2102+
#if IS_ENABLED(CONFIG_KUNIT)
21032103
mod->kunit_suites = section_objs(info, ".kunit_test_suites",
21042104
sizeof(*mod->kunit_suites),
21052105
&mod->num_kunit_suites);

0 commit comments

Comments
 (0)