Skip to contentSkip to conversation

scsi: qedi: select UIO

PATCH In review Arnd Bergmann 5 participants 5 messages Jan 10, 2017 – Jan 11, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scsi: qedi: select UIO

The newly added qedi driver links against the UIO framework, but can be built without that:

drivers/scsi/qedi/qedi_main.o: In function `qedi_free_uio':
qedi_main.c:(.text.qedi_free_uio+0x78): undefined reference to uio_unregister_device' drivers/scsi/qedi/qedi_main.o: In function qedi_ll2_recv_thread':
qedi_main.c:(.text.qedi_ll2_recv_thread+0x18c): undefined reference to uio_event_notify' drivers/scsi/qedi/qedi_main.o: In function __qedi_probe.constprop.1':
qedi_main.c:(.text.__qedi_probe.constprop.1+0x1368): undefined reference to `__uio_register_device'

This adds a compile-time dependency.

Fixes ace7f46ba5fd ("scsi: qedi: Add QLogic FastLinQ offload iSCSI driver framework.")
---
 drivers/scsi/qedi/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/scsi/qedi/Kconfig +1 -0
index 23ca8a274586..913610f3d274 100644
@@ -2,6 +2,7 @@ config QEDI
 	tristate "QLogic QEDI 25/40/100Gb iSCSI Initiator Driver Support"
 	depends on PCI && SCSI
 	depends on QED
+	depends on UIO
 	select SCSI_ISCSI_ATTRS
 	select QED_LL2
 	select QED_ISCSI
Signature · 1 line
2.9.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Arnd Bergmann

The newly added qedi driver links against the UIO framework, but can be built without that:

drivers/scsi/qedi/qedi_main.o: In function `qedi_free_uio':
qedi_main.c:(.text.qedi_free_uio+0x78): undefined reference to uio_unregister_device' drivers/scsi/qedi/qedi_main.o: In function qedi_ll2_recv_thread':
qedi_main.c:(.text.qedi_ll2_recv_thread+0x18c): undefined reference to uio_event_notify' drivers/scsi/qedi/qedi_main.o: In function __qedi_probe.constprop.1':
qedi_main.c:(.text.__qedi_probe.constprop.1+0x1368): undefined reference to `__uio_register_device'

Quoted 5 lines

This adds a compile-time dependency.

Fixes ace7f46ba5fd ("scsi: qedi: Add QLogic FastLinQ offload iSCSI driver framework.")

---

Looks OK,

Signature · 6 lines
Johannes Thumshirn                                          Storage
[email protected]                                +49 911 74053 689
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg)
Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850
#2 lore raw
In reply to Arnd Bergmann
Quoted 23 lines · Arnd Bergmann

The newly added qedi driver links against the UIO framework, but can be built without that:

drivers/scsi/qedi/qedi_main.o: In function `qedi_free_uio':
qedi_main.c:(.text.qedi_free_uio+0x78): undefined reference to uio_unregister_device' drivers/scsi/qedi/qedi_main.o: In function qedi_ll2_recv_thread':
qedi_main.c:(.text.qedi_ll2_recv_thread+0x18c): undefined reference to uio_event_notify' drivers/scsi/qedi/qedi_main.o: In function __qedi_probe.constprop.1':
qedi_main.c:(.text.__qedi_probe.constprop.1+0x1368): undefined reference to `__uio_register_device'

This adds a compile-time dependency.

Fixes ace7f46ba5fd ("scsi: qedi: Add QLogic FastLinQ offload iSCSI driver framework.")
---
 drivers/scsi/qedi/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/scsi/qedi/Kconfig +0 -0
index 23ca8a274586..913610f3d274 100644

drivers/scsi/qedi/Kconfig config QEDI · line 8

Quoted 7 lines
drivers/scsi/qedi/Kconfig +1 -0
@@ -2,6 +2,7 @@ config QEDI
 	tristate "QLogic QEDI 25/40/100Gb iSCSI Initiator Driver Support"
 	depends on PCI && SCSI
 	depends on QED
+	depends on UIO
 	select SCSI_ISCSI_ATTRS
 	select QED_LL2
 	select QED_ISCSI

Randy posted a similar patch back in December but I don't think there was ever a reply to Christoph's question about why qedi depends on uio.

-Ewan

#3 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Ewan" == Ewan D Milne <[email protected]> writes:

Ewan> Randy posted a similar patch back in December but I don't think Ewan> there was ever a reply to Christoph's question about why qedi Ewan> depends on uio.

I did queue up Randy's patch to shut up the build warnings. But we're still looking for a long term fix or an explanation as to why UIO is needed in the first place.

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering
#4 lore raw
Quoted 9 lines · Martin K. Petersen
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Ewan" == Ewan D Milne <[email protected]> writes:

Ewan> Randy posted a similar patch back in December but I don't think Ewan> there was ever a reply to Christoph's question about why qedi Ewan> depends on uio.

I did queue up Randy's patch to shut up the build warnings. But we're still looking for a long term fix or an explanation as to why UIO is needed in the first place.

Similar to bnx2i driver, qedi driver also has a dependency over iscsiuio to provide ARP and DHCP functionality for iscsi offload, and the communication to the
driver is done via uio interface.

https://github.com/open-iscsi/open-iscsi/blob/master/iscsiuio/README

Thanks,
Manish