kunit: building kunit as a module breaks allmodconfig
authorAlan Maguire <alan.maguire@oracle.com>
Fri, 10 Jan 2020 11:49:25 +0000 (11:49 +0000)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 10 Jan 2020 21:36:37 +0000 (14:36 -0700)
commit35c57fc3f8eac81b38664a0fe160e267b908d8b8
tree0efdd18b63c138cb7674a640dcf802f8a2b15884
parent6ae2bfd3df06b59aa1b15e25b9656900b15a8880
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>
drivers/base/Kconfig
security/apparmor/Kconfig