Skip to content

Commit 6a38792

Browse files
rddunlapdavem330
authored andcommitted
scsi: use 'depends' instead of 'select' for SCSI_FC_ATTRS
There are other kconfig symbols which use SCSI_FC_ATTRS. In order to maintain sanity and prevent kconfig warnings, change all of these from using 'select' to using 'depends on' so that proper symbol dependencies will be honored and circular depends problems will be avoided. This fixes kconfig warnings and build errors: warning: (LIBFC && SCSI_IBMVFC && SCSI_QLA_FC && SCSI_LPFC && ZFCP && SCSI_BFA_FC && SCSI_CHELSIO_FCOE && FUSION_FC) selects SCSI_FC_ATTRS which has unmet direct dependencies (SCSI && NET) drivers/scsi/scsi_transport_fc.c: In function 'fc_host_post_event': drivers/scsi/scsi_transport_fc.c:543:7: error: 'scsi_nl_sock' undeclared (first use in this function) drivers/scsi/scsi_transport_fc.c: In function 'fc_host_post_vendor_event': drivers/scsi/scsi_transport_fc.c:611:7: error: 'scsi_nl_sock' undeclared (first use in this function) Reported-by: Fengguang Wu <fengguang.wu@intel.com> [0-day test robot] Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent f650fb4 commit 6a38792

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎drivers/message/fusion/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ config FUSION_SPI
2929
config FUSION_FC
3030
tristate "Fusion MPT ScsiHost drivers for FC"
3131
depends on PCI && SCSI
32-
select SCSI_FC_ATTRS
32+
depends on SCSI_FC_ATTRS
3333
---help---
3434
SCSI HOST support for a Fiber Channel host adapters.
3535

‎drivers/scsi/Kconfig‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ config HYPERV_STORAGE
585585

586586
config LIBFC
587587
tristate "LibFC module"
588-
select SCSI_FC_ATTRS
588+
depends on SCSI_FC_ATTRS
589589
select CRC32
590590
---help---
591591
Fibre Channel library module
@@ -816,7 +816,7 @@ config SCSI_IBMVSCSI
816816
config SCSI_IBMVFC
817817
tristate "IBM Virtual FC support"
818818
depends on PPC_PSERIES && SCSI
819-
select SCSI_FC_ATTRS
819+
depends on SCSI_FC_ATTRS
820820
help
821821
This is the IBM POWER Virtual FC Client
822822

@@ -1266,7 +1266,7 @@ source "drivers/scsi/qla4xxx/Kconfig"
12661266
config SCSI_LPFC
12671267
tristate "Emulex LightPulse Fibre Channel Support"
12681268
depends on PCI && SCSI
1269-
select SCSI_FC_ATTRS
1269+
depends on SCSI_FC_ATTRS
12701270
select CRC_T10DIF
12711271
help
12721272
This lpfc driver supports the Emulex LightPulse
@@ -1676,7 +1676,7 @@ config SCSI_SUNESP
16761676
config ZFCP
16771677
tristate "FCP host bus adapter driver for IBM eServer zSeries"
16781678
depends on S390 && QDIO && SCSI
1679-
select SCSI_FC_ATTRS
1679+
depends on SCSI_FC_ATTRS
16801680
help
16811681
If you want to access SCSI devices attached to your IBM eServer
16821682
zSeries by means of Fibre Channel interfaces say Y.
@@ -1704,7 +1704,7 @@ config SCSI_PM8001
17041704
config SCSI_BFA_FC
17051705
tristate "Brocade BFA Fibre Channel Support"
17061706
depends on PCI && SCSI
1707-
select SCSI_FC_ATTRS
1707+
depends on SCSI_FC_ATTRS
17081708
help
17091709
This bfa driver supports all Brocade PCIe FC/FCOE host adapters.
17101710

‎drivers/scsi/csiostor/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
config SCSI_CHELSIO_FCOE
22
tristate "Chelsio Communications FCoE support"
33
depends on PCI && SCSI
4-
select SCSI_FC_ATTRS
4+
depends on SCSI_FC_ATTRS
55
select FW_LOADER
66
help
77
This driver supports FCoE Offload functionality over

‎drivers/scsi/qla2xxx/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
config SCSI_QLA_FC
22
tristate "QLogic QLA2XXX Fibre Channel Support"
33
depends on PCI && SCSI
4-
select SCSI_FC_ATTRS
4+
depends on SCSI_FC_ATTRS
55
select FW_LOADER
66
---help---
77
This qla2xxx driver supports all QLogic Fibre Channel

0 commit comments

Comments
 (0)