nvme: stub out RDMA transport when not enabled

This fixes a compiler warning about unhandled enum cases in a switch.

Change-Id: Icecb56b47a05c13f390f03b877f8eae243b481a6
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
Daniel Verkamp 2016-11-18 14:43:16 -07:00
parent 246c39a7ee
commit 8c5738ec5c

View File

@ -53,7 +53,7 @@ nvme_transport_unknown(enum spdk_nvme_transport_type transport)
#ifdef SPDK_CONFIG_RDMA
#define TRANSPORT_FABRICS_RDMA(func_name, args) case SPDK_NVME_TRANSPORT_RDMA: return nvme_rdma_ ## func_name args;
#else
#define TRANSPORT_FABRICS_RDMA(func_name, args)
#define TRANSPORT_FABRICS_RDMA(func_name, args) case SPDK_NVME_TRANSPORT_RDMA: SPDK_UNREACHABLE();
#endif
#define NVME_TRANSPORT_CALL(transport, func_name, args) \
do { \