From: Valentine Fatiev <valentinef@nvidia.com>
Subject: [PATCH] BACKPORT:
 drivers/net/ethernet/mellanox/mlx5/core/diag/en_tc_tracepoint.c

Change-Id: Id01424b405a96d7df66587644dfd30f40647c1b9
---
 .../net/ethernet/mellanox/mlx5/core/diag/en_tc_tracepoint.c    | 3 +++
 1 file changed, 3 insertions(+)

--- a/drivers/net/ethernet/mellanox/mlx5/core/diag/en_tc_tracepoint.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/diag/en_tc_tracepoint.c
@@ -1,6 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB
 /* Copyright (c) 2019 Mellanox Technologies. */
 
+#ifndef MLX_DISABLE_TRACEPOINTS
 #define CREATE_TRACE_POINTS
 #include "en_tc_tracepoint.h"
 
@@ -56,3 +57,5 @@ const char *parse_action(struct trace_se
 	trace_seq_putc(p, 0);
 	return ret;
 }
+
+#endif
