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

Change-Id: I4b13aeb490d1a672b92e0af28e4efa3882e774f9
---
 drivers/infiniband/core/cma_trace.h | 3 +++
 1 file changed, 3 insertions(+)

--- a/drivers/infiniband/core/cma_trace.h
+++ b/drivers/infiniband/core/cma_trace.h
@@ -6,6 +6,7 @@
  *
  * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
  */
+#ifdef HAVE_TRACE_EVENTS_H
 
 #undef TRACE_SYSTEM
 #define TRACE_SYSTEM rdma_cma
@@ -359,3 +360,5 @@ DEFINE_CMA_CLIENT_EVENT(remove_one);
 #define TRACE_INCLUDE_FILE cma_trace
 
 #include <trace/define_trace.h>
+
+#endif
