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

Change-Id: I3a3e9247bc4983bd9fa02473adda720e93e42116
---
 drivers/net/ethernet/mellanox/mlx5/core/cq.c | 8 ++++++++
 1 file changed, 8 insertions(+)

--- a/drivers/net/ethernet/mellanox/mlx5/core/cq.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/cq.c
@@ -41,11 +41,19 @@
 #define TASKLET_MAX_TIME 2
 #define TASKLET_MAX_TIME_JIFFIES msecs_to_jiffies(TASKLET_MAX_TIME)
 
+#ifdef HAVE_TASKLET_SETUP
 void mlx5_cq_tasklet_cb(struct tasklet_struct *t)
+#else
+void mlx5_cq_tasklet_cb(unsigned long data)
+#endif
 {
 	unsigned long flags;
 	unsigned long end = jiffies + TASKLET_MAX_TIME_JIFFIES;
+#ifdef HAVE_TASKLET_SETUP
 	struct mlx5_eq_tasklet *ctx = from_tasklet(ctx, t, task);
+#else
+	struct mlx5_eq_tasklet *ctx = (struct mlx5_eq_tasklet *)data;
+#endif
 	struct mlx5_core_cq *mcq;
 	struct mlx5_core_cq *temp;
 
