]> git.baikalelectronics.ru Git - kernel.git/commit
null_blk: remove explicit 'select FAULT_INJECTION'
authorArnd Bergmann <arnd@arndb.de>
Thu, 11 Jan 2018 10:31:25 +0000 (11:31 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 11 Jan 2018 14:58:31 +0000 (07:58 -0700)
commit7780bdf9aeb879280387e7e357e22a9db909e490
treed7538a985bb09355f1e8d9477ab07bcd237df5d5
parent1e7539ab6777b462697bd5b32e7344961a155a72
null_blk: remove explicit 'select FAULT_INJECTION'

Selecting FAULT_INJECTION causes a Kconfig warning when CONFIG_DEBUG_KERNEL
is not set:

warning: (BLK_DEV_NULL_BLK && DRM_I915_SELFTEST) selects FAULT_INJECTION which has unmet direct dependencies (DEBUG_KERNEL)

The other drivers that use FAULT_INJECTION tend to have a separate
Kconfig symbol for turning on that feature, so let's do the same
thing here. This may add a bit more complexity than we like, but
it avoids the warning and is more consistent with the rest of the
kernel.

Fixes: cd8c696e30a6 ("null_blk: add option for managing IO timeouts")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/Kconfig
drivers/block/null_blk.c