lib/Kconfig.debug: fix build error without CONFIG_BLOCK [Linux 5.1]

lib/Kconfig.debug: fix build error without CONFIG_BLOCK [Linux 5.1]

This Linux kernel change "lib/Kconfig.debug: fix build error without CONFIG_BLOCK" is included in the Linux 5.1 release. This change is authored by YueHaibing <yuehaibing [at]> on Thu Apr 25 22:23:44 2019 -0700. The commit for this change in Linux stable tree is ae3d6a3 (patch).

lib/Kconfig.debug: fix build error without CONFIG_BLOCK

If CONFIG_TEST_KMOD is set to M, while CONFIG_BLOCK is not set, XFS and
BTRFS can not be compiled successly.

Link:[email protected]
Fixes: d9c6a72d6fa2 ("kmod: add test driver to stress test the module loader")
Signed-off-by: YueHaibing <[email protected]>
Reported-by: Hulk Robot <[email protected]>
Reviewed-by: Kees Cook <[email protected]>
Cc: Masahiro Yamada <[email protected]>
Cc: Petr Mladek <[email protected]>
Cc: Andy Shevchenko <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Cc: Joe Lawrence <[email protected]>
Cc: Robin Murphy <[email protected]>
Cc: Luis Chamberlain <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>

There is one line of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 lib/Kconfig.debug | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 00dbcdb..d5a4a40 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -1929,6 +1929,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

Leave a Reply

Your email address will not be published. Required fields are marked *