summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorAlan Maguire <alan.maguire@oracle.com>2020-01-10 14:49:25 +0300
committerShuah Khan <skhan@linuxfoundation.org>2020-01-11 00:36:37 +0300
commit35c57fc3f8eac81b38664a0fe160e267b908d8b8 (patch)
tree0efdd18b63c138cb7674a640dcf802f8a2b15884 /security
parent6ae2bfd3df06b59aa1b15e25b9656900b15a8880 (diff)
downloadlinux-35c57fc3f8eac81b38664a0fe160e267b908d8b8.tar.xz
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: 9fe124bf1b77 ("kunit: allow kunit to be loaded as a module") Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Alan Maguire <alan.maguire@oracle.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'security')
-rw-r--r--security/apparmor/Kconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/apparmor/Kconfig b/security/apparmor/Kconfig
index d54793073d1c..0fe336860773 100644
--- a/security/apparmor/Kconfig
+++ b/security/apparmor/Kconfig
@@ -71,7 +71,7 @@ config SECURITY_APPARMOR_DEBUG_MESSAGES
config SECURITY_APPARMOR_KUNIT_TEST
bool "Build KUnit tests for policy_unpack.c"
- depends on KUNIT && SECURITY_APPARMOR
+ depends on KUNIT=y && SECURITY_APPARMOR
help
This builds the AppArmor KUnit tests.