9p: restrict RDMA usage

linux-next:

Make 9p's RDMA option depend on INET since it uses Infiniband rdma_*
functions and that code depends on INET. Otherwise 9p can try to
use symbols which don't exist.

ERROR: "rdma_destroy_id" [net/9p/9pnet_rdma.ko] undefined!
ERROR: "rdma_connect" [net/9p/9pnet_rdma.ko] undefined!
ERROR: "rdma_create_id" [net/9p/9pnet_rdma.ko] undefined!
ERROR: "rdma_create_qp" [net/9p/9pnet_rdma.ko] undefined!
ERROR: "rdma_resolve_route" [net/9p/9pnet_rdma.ko] undefined!
ERROR: "rdma_disconnect" [net/9p/9pnet_rdma.ko] undefined!
ERROR: "rdma_resolve_addr" [net/9p/9pnet_rdma.ko] undefined!

I used an if/endif block so that the menu items would remain
presented together.

Also correct an article adjective.

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>

authored by Randy Dunlap and committed by Eric Van Hensbergen 4ff429e6 58e20d8d

+6 -4
+6 -4
net/9p/Kconfig
··· 13 14 If unsure, say N. 15 16 config NET_9P_VIRTIO 17 - depends on NET_9P && EXPERIMENTAL && VIRTIO 18 tristate "9P Virtio Transport (Experimental)" 19 help 20 This builds support for a transports between 21 guest partitions and a host partition. 22 23 config NET_9P_RDMA 24 - depends on NET_9P && INFINIBAND && EXPERIMENTAL 25 tristate "9P RDMA Transport (Experimental)" 26 help 27 - This builds support for a RDMA transport. 28 29 config NET_9P_DEBUG 30 bool "Debug information" 31 - depends on NET_9P 32 help 33 Say Y if you want the 9P subsystem to log debug information. 34
··· 13 14 If unsure, say N. 15 16 + if NET_9P 17 + 18 config NET_9P_VIRTIO 19 + depends on EXPERIMENTAL && VIRTIO 20 tristate "9P Virtio Transport (Experimental)" 21 help 22 This builds support for a transports between 23 guest partitions and a host partition. 24 25 config NET_9P_RDMA 26 + depends on INET && INFINIBAND && EXPERIMENTAL 27 tristate "9P RDMA Transport (Experimental)" 28 help 29 + This builds support for an RDMA transport. 30 31 config NET_9P_DEBUG 32 bool "Debug information" 33 help 34 Say Y if you want the 9P subsystem to log debug information. 35 36 + endif