Skip to contentSkip to conversation

scsi: scsi_transport_sas: select BLK_DEV_BSGLIB

PATCH Applied Arnd Bergmann 3 participants 3 messages Sep 5, 2017 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scsi: scsi_transport_sas: select BLK_DEV_BSGLIB

Without CONFIG_BLK_DEV_BSGLIB, we get a link error here:

drivers/scsi/scsi_transport_sas.o: In function `sas_bsg_initialize':
scsi_transport_sas.c:(.text+0xcc0): undefined reference to bsg_setup_queue' scsi_transport_sas.c:(.text+0xd10): undefined reference to bsg_setup_queue' drivers/scsi/scsi_transport_sas.o: In function `sas_smp_dispatch':
scsi_transport_sas.c:(.text+0xe8c): undefined reference to `bsg_job_done'

This modifies the Kconfig 'select' statement accordingly, and matching what we do for the other two scsi_transport implementations that use bsglib.

Fixes 651a01364994 ("scsi: scsi_transport_sas: switch to bsg-lib for SMP passthrough")
---
 drivers/scsi/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/Kconfig +1 -1
index d145e0d90227..41366339b950 100644
@@ -283,7 +283,7 @@ config SCSI_ISCSI_ATTRS
 config SCSI_SAS_ATTRS
 	tristate "SAS Transport Attributes"
 	depends on SCSI
-	select BLK_DEV_BSG
+	select BLK_DEV_BSGLIB
 	help
 	  If you wish to export transport-specific information about
 	  each attached SAS device to sysfs, say Y.
Signature · 1 line
2.9.0
#2 lore raw
In reply to Arnd Bergmann

Arnd,

Quoted 8 lines

Without CONFIG_BLK_DEV_BSGLIB, we get a link error here:

drivers/scsi/scsi_transport_sas.o: In function `sas_bsg_initialize':
scsi_transport_sas.c:(.text+0xcc0): undefined reference to bsg_setup_queue' scsi_transport_sas.c:(.text+0xd10): undefined reference to bsg_setup_queue' drivers/scsi/scsi_transport_sas.o: In function `sas_smp_dispatch':
scsi_transport_sas.c:(.text+0xe8c): undefined reference to `bsg_job_done'

Quoted 6 lines

This modifies the Kconfig 'select' statement accordingly, and matching what we do for the other two scsi_transport implementations that use bsglib.

Fixes 651a01364994 ("scsi: scsi_transport_sas: switch to bsg-lib for SMP passthrough")

Applied to 4.14/scsi-queue. Thanks!

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering