diff options
author | Alan Maguire <alan.maguire@oracle.com> | 2020-01-10 11:49:25 +0000 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2020-01-10 14:36:37 -0700 |
commit | 35c57fc3f8eac81b38664a0fe160e267b908d8b8 (patch) | |
tree | 0efdd18b63c138cb7674a640dcf802f8a2b15884 /security/apparmor | |
parent | 6ae2bfd3df06b59aa1b15e25b9656900b15a8880 (diff) | |
download | linux-stable-35c57fc3f8eac81b38664a0fe160e267b908d8b8.tar.gz linux-stable-35c57fc3f8eac81b38664a0fe160e267b908d8b8.tar.bz2 linux-stable-35c57fc3f8eac81b38664a0fe160e267b908d8b8.zip |
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/apparmor')
-rw-r--r-- | security/apparmor/Kconfig | 2 |
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. |