From: Valentine Fatiev <valentinef@nvidia.com>
Subject: [PATCH] BACKPORT: drivers/infiniband/core/cm_trace.c

Change-Id: I16f0c2399d1f36e5cec310156e7210066263ad57
---
 drivers/infiniband/core/cm_trace.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- a/drivers/infiniband/core/cm_trace.c
+++ b/drivers/infiniband/core/cm_trace.c
@@ -11,5 +11,6 @@
 #include "cma_priv.h"
 
 #define CREATE_TRACE_POINTS
-
+#if defined(HAVE_TRACE_EVENTS_H) && !defined(MLX_DISABLE_TRACEPOINTS)
 #include "cm_trace.h"
+#endif
