diff options
author | Alan Maguire <alan.maguire@oracle.com> | 2020-01-10 12:49:25 +0100 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2020-01-10 22:36:37 +0100 |
commit | 35c57fc3f8eac81b38664a0fe160e267b908d8b8 (patch) | |
tree | 0efdd18b63c138cb7674a640dcf802f8a2b15884 /security | |
parent | kunit: update documentation to describe module-based build (diff) | |
download | linux-35c57fc3f8eac81b38664a0fe160e267b908d8b8.tar.xz linux-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')
-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. |