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

Change-Id: Ie1c29ce01b46d495e111906de7c8c2eb323f9a77
---
 drivers/infiniband/core/trace.c | 2 ++
 1 file changed, 2 insertions(+)

--- a/drivers/infiniband/core/trace.c
+++ b/drivers/infiniband/core/trace.c
@@ -7,6 +7,8 @@
  * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
  */
 
+#ifdef HAVE_TRACE_EVENTS_RDMA_CORE_HEADER 
 #define CREATE_TRACE_POINTS
 
 #include <trace/events/rdma_core.h>
+#endif
