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:
parent
246c39a7ee
commit
8c5738ec5c
@ -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 { \
|
||||
|
Loading…
x
Reference in New Issue
Block a user