]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
target: don't depend on SCSI
authorChristoph Hellwig <hch@lst.de>
Tue, 31 Jul 2018 19:51:49 +0000 (12:51 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 2 Aug 2018 21:19:49 +0000 (15:19 -0600)
The core target code only needs code from scsi_common.c, which is now
separately selectable.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/target/Kconfig

index 4c44d7bed01a6c44b23a7898be558ae75329b191..cb6f32ce7de8f23c8a330147d1b7acff8b9a1ab2 100644 (file)
@@ -1,10 +1,10 @@
 
 menuconfig TARGET_CORE
        tristate "Generic Target Core Mod (TCM) and ConfigFS Infrastructure"
-       depends on SCSI && BLOCK
+       depends on BLOCK
        select CONFIGFS_FS
        select CRC_T10DIF
-       select BLK_SCSI_REQUEST # only for scsi_command_size_tbl..
+       select BLK_SCSI_REQUEST
        select SGL_ALLOC
        default n
        help
@@ -29,6 +29,7 @@ config TCM_FILEIO
 
 config TCM_PSCSI
        tristate "TCM/pSCSI Subsystem Plugin for Linux/SCSI"
+       depends on SCSI
        help
        Say Y here to enable the TCM/pSCSI subsystem plugin for non-buffered
        passthrough access to Linux/SCSI device