From 51dc30f27b8b313433c4c926b11e271ca57f2caa Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 24 May 2020 15:57:29 +0000 Subject: [PATCH] ib_srpt: Fix the build for kernel versions before v5.3 git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8980 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index 6e8d604ef..a5c309cb3 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -2341,8 +2341,11 @@ retry: ch->max_send_sge = sdev->dev_attr.max_sge; #endif if (max_sge_delta == 0) { -#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 17, 0) - /* See also commit 0ede73bc012c ("IB/uverbs: Extend uverbs_ioctl header with driver_id") # v4.17. */ +#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0) + /* + * See also commit b9560a419bfd ("RDMA: Move driver_id into + * struct ib_device_ops") # v5.3. + */ switch (sdev->device->ops.driver_id) { case RDMA_DRIVER_MLX4: /*