From: Valentine Fatiev <valentinef@nvidia.com>
Subject: [PATCH] BACKPORT: include/trace/events/ib_mad.h

Change-Id: I958e57b9a90aa782c5d46e8518a48ff8f4c0f094
---
 include/trace/events/ib_mad.h | 8 ++++++++
 1 file changed, 8 insertions(+)

--- a/include/trace/events/ib_mad.h
+++ b/include/trace/events/ib_mad.h
@@ -4,20 +4,26 @@
  * Copyright (c) 2018 Intel Corporation.  All rights reserved.
  */
 
+#ifndef MLX_DISABLE_TRACEPOINTS
 #undef TRACE_SYSTEM
 #define TRACE_SYSTEM ib_mad
 
 #if !defined(_TRACE_IB_MAD_H) || defined(TRACE_HEADER_MULTI_READ)
 #define _TRACE_IB_MAD_H
 
+#include "../../../compat/config.h"
+
 #include <linux/tracepoint.h>
 #include <rdma/ib_mad.h>
 
 #ifdef CONFIG_TRACEPOINTS
+
 struct trace_event_raw_ib_mad_send_template;
+
 static void create_mad_addr_info(struct ib_mad_send_wr_private *mad_send_wr,
 			  struct ib_mad_qp_info *qp_info,
 			  struct trace_event_raw_ib_mad_send_template *entry);
+
 #endif
 
 DECLARE_EVENT_CLASS(ib_mad_send_template,
@@ -380,6 +386,8 @@ DEFINE_EVENT(ib_mad_opa_ib_template, ib_
 	TP_PROTO(struct ib_smp *smp),
 	TP_ARGS(smp));
 
+
 #endif /* _TRACE_IB_MAD_H */
 
 #include <trace/define_trace.h>
+#endif
