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

Change-Id: If8733fde20503c9c16d04b1c7c4b932db9bf9b86
---
 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"
@@ -297,3 +299,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 */
