From: Tom Wu <tomwu@nvidia.com>
Subject: [PATCH] BACKPORT: net/sunrpc/xprtrdma/module.c

Change-Id: Ib3313defc7ead223522566431b985cd7e8b7882c
Signed-off-by: Tom Wu <tomwu@nvidia.com>
---
 net/sunrpc/xprtrdma/module.c | 4 ++++
 1 file changed, 4 insertions(+)

--- a/net/sunrpc/xprtrdma/module.c
+++ b/net/sunrpc/xprtrdma/module.c
@@ -17,14 +17,18 @@
 #include "xprt_rdma.h"
 
 #define CREATE_TRACE_POINTS
+#ifdef HAVE_TRACE_RPCRDMA_H
 #include <trace/events/rpcrdma.h>
+#endif
 
 MODULE_AUTHOR("Open Grid Computing and Network Appliance, Inc.");
 MODULE_DESCRIPTION("RPC/RDMA Transport");
 MODULE_LICENSE("Dual BSD/GPL");
 MODULE_ALIAS("svcrdma");
 MODULE_ALIAS("xprtrdma");
+#ifdef HAVE_XPRT_CLASS_NETID
 MODULE_ALIAS("rpcrdma6");
+#endif
 
 static void __exit rpc_rdma_cleanup(void)
 {
