Commit 1fa989e8 authored by Randy Dunlap's avatar Randy Dunlap Committed by David S. Miller

9p: restrict RDMA usage

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: default avatarRandy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9c0188ac
...@@ -13,22 +13,24 @@ menuconfig NET_9P ...@@ -13,22 +13,24 @@ menuconfig NET_9P
If unsure, say N. If unsure, say N.
if NET_9P
config NET_9P_VIRTIO config NET_9P_VIRTIO
depends on NET_9P && EXPERIMENTAL && VIRTIO depends on EXPERIMENTAL && VIRTIO
tristate "9P Virtio Transport (Experimental)" tristate "9P Virtio Transport (Experimental)"
help help
This builds support for a transports between This builds support for a transports between
guest partitions and a host partition. guest partitions and a host partition.
config NET_9P_RDMA config NET_9P_RDMA
depends on NET_9P && INFINIBAND && EXPERIMENTAL depends on INET && INFINIBAND && EXPERIMENTAL
tristate "9P RDMA Transport (Experimental)" tristate "9P RDMA Transport (Experimental)"
help help
This builds support for a RDMA transport. This builds support for an RDMA transport.
config NET_9P_DEBUG config NET_9P_DEBUG
bool "Debug information" bool "Debug information"
depends on NET_9P
help help
Say Y if you want the 9P subsystem to log debug information. Say Y if you want the 9P subsystem to log debug information.
endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment