diff options
author | Arnd Bergmann <arnd@arndb.de> | 2018-05-25 17:29:59 -0400 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-05-28 12:40:16 -0400 |
commit | 533d1daea8d8a389b37207ad7b50c4e750969231 (patch) | |
tree | ad18e3f9ed0e7c2b476afbb9b6851db55f076745 /net | |
parent | 6e04b103568983bd699fac96b80a9b96ede68118 (diff) |
IB: Revert "remove redundant INFINIBAND kconfig dependencies"
Several subsystems depend on INFINIBAND_ADDR_TRANS, which in turn depends
on INFINIBAND. However, when with CONFIG_INIFIBAND=m, this leads to a
link error when another driver using it is built-in. The
INFINIBAND_ADDR_TRANS dependency is insufficient here as this is
a 'bool' symbol that does not force anything to be a module in turn.
fs/cifs/smbdirect.o: In function `smbd_disconnect_rdma_work':
smbdirect.c:(.text+0x1e4): undefined reference to `rdma_disconnect'
net/9p/trans_rdma.o: In function `rdma_request':
trans_rdma.c:(.text+0x7bc): undefined reference to `rdma_disconnect'
net/9p/trans_rdma.o: In function `rdma_destroy_trans':
trans_rdma.c:(.text+0x830): undefined reference to `ib_destroy_qp'
trans_rdma.c:(.text+0x858): undefined reference to `ib_dealloc_pd'
Fixes: 9533b292a7ac ("IB: remove redundant INFINIBAND kconfig dependencies")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Greg Thelen <gthelen@google.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/9p/Kconfig | 2 | ||||
-rw-r--r-- | net/rds/Kconfig | 2 | ||||
-rw-r--r-- | net/sunrpc/Kconfig | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/net/9p/Kconfig b/net/9p/Kconfig index 46c39f7da444..e6014e0e51f7 100644 --- a/net/9p/Kconfig +++ b/net/9p/Kconfig | |||
@@ -32,7 +32,7 @@ config NET_9P_XEN | |||
32 | 32 | ||
33 | 33 | ||
34 | config NET_9P_RDMA | 34 | config NET_9P_RDMA |
35 | depends on INET && INFINIBAND_ADDR_TRANS | 35 | depends on INET && INFINIBAND && INFINIBAND_ADDR_TRANS |
36 | tristate "9P RDMA Transport (Experimental)" | 36 | tristate "9P RDMA Transport (Experimental)" |
37 | help | 37 | help |
38 | This builds support for an RDMA transport. | 38 | This builds support for an RDMA transport. |
diff --git a/net/rds/Kconfig b/net/rds/Kconfig index 1a31502ee7db..bffde4b46c5d 100644 --- a/net/rds/Kconfig +++ b/net/rds/Kconfig | |||
@@ -8,7 +8,7 @@ config RDS | |||
8 | 8 | ||
9 | config RDS_RDMA | 9 | config RDS_RDMA |
10 | tristate "RDS over Infiniband" | 10 | tristate "RDS over Infiniband" |
11 | depends on RDS && INFINIBAND_ADDR_TRANS | 11 | depends on RDS && INFINIBAND && INFINIBAND_ADDR_TRANS |
12 | ---help--- | 12 | ---help--- |
13 | Allow RDS to use Infiniband as a transport. | 13 | Allow RDS to use Infiniband as a transport. |
14 | This transport supports RDMA operations. | 14 | This transport supports RDMA operations. |
diff --git a/net/sunrpc/Kconfig b/net/sunrpc/Kconfig index 6358e5271070..ac09ca803296 100644 --- a/net/sunrpc/Kconfig +++ b/net/sunrpc/Kconfig | |||
@@ -50,7 +50,7 @@ config SUNRPC_DEBUG | |||
50 | 50 | ||
51 | config SUNRPC_XPRT_RDMA | 51 | config SUNRPC_XPRT_RDMA |
52 | tristate "RPC-over-RDMA transport" | 52 | tristate "RPC-over-RDMA transport" |
53 | depends on SUNRPC && INFINIBAND_ADDR_TRANS | 53 | depends on SUNRPC && INFINIBAND && INFINIBAND_ADDR_TRANS |
54 | default SUNRPC && INFINIBAND | 54 | default SUNRPC && INFINIBAND |
55 | select SG_POOL | 55 | select SG_POOL |
56 | help | 56 | help |