Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

scsi: core: Make SCSI_MOD depend on BLOCK for cleaner .config files

SCSI_MOD is a helper config symbol for configuring RAID_ATTRS properly,
i.e., RAID_ATTRS needs to be m when SCSI=m.

This helper config symbol SCSI_MOD still shows up even in kernel
configurations that do not select the block subsystem and where SCSI is not
even a configuration option mentioned and selectable.

Make this SCSI_MOD depend on BLOCK, so that it only shows up when it is
slightly relevant in the kernel configuration.

Link: https://lore.kernel.org/r/20220919060112.24802-1-lukas.bulwahn@gmail.com
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Lukas Bulwahn <lukas.bulwahn@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Lukas Bulwahn and committed by
Martin K. Petersen
3d217b9a 1a77dd1c

+4 -3
+4 -3
drivers/scsi/Kconfig
··· 2 2 menu "SCSI device support" 3 3 4 4 config SCSI_MOD 5 - tristate 6 - default y if SCSI=n || SCSI=y 7 - default m if SCSI=m 5 + tristate 6 + default y if SCSI=n || SCSI=y 7 + default m if SCSI=m 8 + depends on BLOCK 8 9 9 10 config RAID_ATTRS 10 11 tristate "RAID Transport Class"