From: YueHaibing Date: Fri, 26 Apr 2019 05:23:44 +0000 (-0700) Subject: lib/Kconfig.debug: fix build error without CONFIG_BLOCK X-Git-Tag: v4.19.38~73 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ce900ddd660ddd1cf430733b0a863ddf5520d171;p=thirdparty%2Fkernel%2Fstable.git lib/Kconfig.debug: fix build error without CONFIG_BLOCK commit ae3d6a323347940f0548bbb4b17f0bb2e9164169 upstream. If CONFIG_TEST_KMOD is set to M, while CONFIG_BLOCK is not set, XFS and BTRFS can not be compiled successly. Link: http://lkml.kernel.org/r/20190410075434.35220-1-yuehaibing@huawei.com Fixes: d9c6a72d6fa2 ("kmod: add test driver to stress test the module loader") Signed-off-by: YueHaibing Reported-by: Hulk Robot Reviewed-by: Kees Cook Cc: Masahiro Yamada Cc: Petr Mladek Cc: Andy Shevchenko Cc: Matthew Wilcox Cc: Joe Lawrence Cc: Robin Murphy Cc: Luis Chamberlain Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 4966c4fbe7f73..3dea52f7be9c1 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -1934,6 +1934,7 @@ config TEST_KMOD depends on m depends on BLOCK && (64BIT || LBDAF) # for XFS, BTRFS depends on NETDEVICES && NET_CORE && INET # for TUN + depends on BLOCK select TEST_LKM select XFS_FS select TUN