Skip to content

Commit 35c57fc

Browse files
alan-maguireshuahkh
authored andcommitted
kunit: building kunit as a module breaks allmodconfig
kunit tests that do not support module build should depend on KUNIT=y rather than just KUNIT in Kconfig, otherwise they will trigger compilation errors for "make allmodconfig" builds. Fixes: 9fe124b ("kunit: allow kunit to be loaded as a module") Reported-by: Stephen Rothwell <[email protected]> Signed-off-by: Alan Maguire <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent 6ae2bfd commit 35c57fc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/base/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ config DEBUG_TEST_DRIVER_REMOVE
150150

151151
config PM_QOS_KUNIT_TEST
152152
bool "KUnit Test for PM QoS features"
153-
depends on KUNIT
153+
depends on KUNIT=y
154154

155155
config HMEM_REPORTING
156156
bool

security/apparmor/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ config SECURITY_APPARMOR_DEBUG_MESSAGES
7171

7272
config SECURITY_APPARMOR_KUNIT_TEST
7373
bool "Build KUnit tests for policy_unpack.c"
74-
depends on KUNIT && SECURITY_APPARMOR
74+
depends on KUNIT=y && SECURITY_APPARMOR
7575
help
7676
This builds the AppArmor KUnit tests.
7777

0 commit comments

Comments
 (0)