summaryrefslogtreecommitdiff
path: root/drivers/infiniband/hw/ocrdma/Kconfig
diff options
context:
space:
mode:
authorRoland Dreier <roland@purestorage.com>2012-05-02 15:42:33 -0700
committerRoland Dreier <roland@purestorage.com>2012-05-08 11:17:49 -0700
commit349556692df946b9cd5b84f2b0fa09b98732e986 (patch)
tree3c887f8b85e864b103aff9a56c75c8f756185470 /drivers/infiniband/hw/ocrdma/Kconfig
parentd19081e044356ae6464e939aef04514c5e227b5a (diff)
RDMA/ocrdma: Fix build with IPV6=n
When IPV6 is not enabled: ERROR: "register_inet6addr_notifier" [drivers/infiniband/hw/ocrdma/ocrdma.ko] undefined! ERROR: "unregister_inet6addr_notifier" [drivers/infiniband/hw/ocrdma/ocrdma.ko] undefined! Fix this by wrapping the inet6 calls in #ifdef IPV6. Also make the ocrdma module depend on (IPV6 || IPV6=n) to forbid the case of modular ipv6 but built-in ocrdma (which can't work, because ocrdma calls ipv6 functions). Reported-by: Randy Dunlap <rdunlap@xenotime.net> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/hw/ocrdma/Kconfig')
-rw-r--r--drivers/infiniband/hw/ocrdma/Kconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/ocrdma/Kconfig b/drivers/infiniband/hw/ocrdma/Kconfig
index cf993424e2fb..b5b6056c8518 100644
--- a/drivers/infiniband/hw/ocrdma/Kconfig
+++ b/drivers/infiniband/hw/ocrdma/Kconfig
@@ -1,6 +1,6 @@
config INFINIBAND_OCRDMA
tristate "Emulex One Connect HCA support"
- depends on ETHERNET && NETDEVICES && PCI
+ depends on ETHERNET && NETDEVICES && PCI && (IPV6 || IPV6=n)
select NET_VENDOR_EMULEX
select BE2NET
---help---