Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

9p: disallow RDMA if RDMA CM isn't available

If INET=y and INFINIBAND=y, but IPV6=m then INFINIBAND_ADDR_TRANS is set
to n and the RDMA CM functions rdma_connect() et al are not built.
However, the current config dependencies allow NET_9P_RDMA to be selected
in this, which leads to a build failure. Fix this by adding a dependency
on INFINIBAND_ADDR_TRANS to disallow NET_9P_RDMA in this case.

Reported-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Acked-by: Randy Dunlap <randy.dunlap@oracle.com>
Tested-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Roland Dreier and committed by
Linus Torvalds
6364853d 6b7021ef

+1 -1
+1 -1
net/9p/Kconfig
··· 23 23 guest partitions and a host partition. 24 24 25 25 config NET_9P_RDMA 26 - depends on INET && INFINIBAND && EXPERIMENTAL 26 + depends on INET && INFINIBAND && INFINIBAND_ADDR_TRANS && EXPERIMENTAL 27 27 tristate "9P RDMA Transport (Experimental)" 28 28 help 29 29 This builds support for an RDMA transport.