Commit d325c162 authored by Akinobu Mita's avatar Akinobu Mita Committed by Jens Axboe

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: 4668c7a2 ("fault-inject: allow configuration via configfs")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/oe-kbuild-all/202304150025.K0hczLR4-lkp@intel.com/Signed-off-by: default avatarAkinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 9f4107b0
...@@ -1960,7 +1960,8 @@ config FAIL_SUNRPC ...@@ -1960,7 +1960,8 @@ config FAIL_SUNRPC
config FAULT_INJECTION_CONFIGFS config FAULT_INJECTION_CONFIGFS
bool "Configfs interface for fault-injection capabilities" bool "Configfs interface for fault-injection capabilities"
depends on FAULT_INJECTION && CONFIGFS_FS depends on FAULT_INJECTION
select CONFIGFS_FS
help help
This option allows configfs-based drivers to dynamically configure This option allows configfs-based drivers to dynamically configure
fault-injection via configfs. Each parameter for driver-specific fault-injection via configfs. Each parameter for driver-specific
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment