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

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

--- a/drivers/net/ethernet/mellanox/mlx5/core/diag/fs_tracepoint.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/diag/fs_tracepoint.c
@@ -30,6 +30,8 @@
  * SOFTWARE.
  */
 
+#ifndef MLX_DISABLE_TRACEPOINTS
+
 #define CREATE_TRACE_POINTS
 
 #include "fs_tracepoint.h"
@@ -278,3 +280,4 @@ EXPORT_TRACEPOINT_SYMBOL(mlx5_fs_del_fte
 EXPORT_TRACEPOINT_SYMBOL(mlx5_fs_add_rule);
 EXPORT_TRACEPOINT_SYMBOL(mlx5_fs_del_rule);
 
+#endif /* MLX_DISABLE_TRACEPOINTS */
