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

Change-Id: Ia242d352ca8b8473cd608ea2864c04cf62f52e3d
---
 .../net/ethernet/mellanox/mlx5/core/steering/dr_dbg.c  | 10 ++++++++++
 1 file changed, 10 insertions(+)

--- a/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_dbg.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_dbg.c
@@ -7,6 +7,16 @@
 #include <linux/version.h>
 #include "dr_types.h"
 
+#ifndef LINUX_VERSION_MAJOR
+#define LINUX_VERSION_MAJOR 0
+#endif
+#ifndef LINUX_VERSION_PATCHLEVEL
+#define LINUX_VERSION_PATCHLEVEL 0
+#endif
+#ifndef LINUX_VERSION_SUBLEVEL
+#define LINUX_VERSION_SUBLEVEL 0
+#endif
+
 #define DR_DBG_PTR_TO_ID(p) ((u64)(uintptr_t)(p) & 0xFFFFFFFFULL)
 
 enum dr_dump_rec_type {
