Skip to contentSkip to conversation

IB/hfi1: Add Infiniband dependency to Kconfig

PATCH Applied Mike Marciniszyn 2 participants 2 messages Aug 4, 2015 – Aug 14, 2015 1 message not in the archive

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

PATCH 1/1 IB/hfi1: Add Infiniband dependency to Kconfig

From: Jubin John <[email protected]>

The hfi1 driver depends on the infiniband core stack. Building a kernel without the infiniband core but with the hfi1 driver causes undefined reference errors to the ib_* functions.

Reported by 0-day build:
https://lists.01.org/pipermail/kbuild-all/2015-August/011216.html

This is a temporary patch and is only needed while the hfi1 driver is in staging. Remove when moving driver back to drivers/infiniband.

---
 drivers/staging/hfi1/Kconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/hfi1/Kconfig +1 -1
index 87a385a..78bc89e 100644
@@ -1,6 +1,6 @@
 config INFINIBAND_HFI1
 	tristate "Intel OPA Gen1 support"
-	depends on X86_64
+	depends on X86_64 && INFINIBAND
 	default m
 	---help---
 	This is a low-level driver for Intel OPA Gen1 adapter.

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

Applied
#2 lore raw
In reply to a message not in the archive
Quoted 9 lines · Mike Marciniszyn

From: Jubin John <[email protected]>

The hfi1 driver depends on the infiniband core stack. Building a kernel without the infiniband core but with the hfi1 driver causes undefined reference errors to the ib_* functions.

Reported by 0-day build:
https://lists.01.org/pipermail/kbuild-all/2015-August/011216.html

Quoted 6 lines

This is a temporary patch and is only needed while the hfi1 driver is in staging. Remove when moving driver back to drivers/infiniband.

Picked up, thanks.

Signature · 2 lines
Doug Ledford <[email protected]>
              GPG KeyID: 0E572FDD