Skip to content

Commit d325c16

Browse files
mitaaxboe
authored andcommitted
fault-inject: fix build error when FAULT_INJECTION_CONFIGFS=y and CONFIGFS_FS=m
This fixes a build error when CONFIG_FAULT_INJECTION_CONFIGFS=y and CONFIG_CONFIGFS_FS=m. Since the fault-injection library cannot built as a module, avoid building configfs as a module. Fixes: 4668c7a ("fault-inject: allow configuration via configfs") Reported-by: kernel test robot <[email protected]> Link: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Akinobu Mita <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent 9f4107b commit d325c16

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Kconfig.debug

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1960,7 +1960,8 @@ config FAIL_SUNRPC
19601960

19611961
config FAULT_INJECTION_CONFIGFS
19621962
bool "Configfs interface for fault-injection capabilities"
1963-
depends on FAULT_INJECTION && CONFIGFS_FS
1963+
depends on FAULT_INJECTION
1964+
select CONFIGFS_FS
19641965
help
19651966
This option allows configfs-based drivers to dynamically configure
19661967
fault-injection via configfs. Each parameter for driver-specific

0 commit comments

Comments
 (0)