ib_srpt.c compiles now on RHEL 5.x systems where OFED has been installed.
authorbvassche <bvassche@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Mon, 4 May 2009 18:57:04 +0000 (18:57 +0000)
committerbvassche <bvassche@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Mon, 4 May 2009 18:57:04 +0000 (18:57 +0000)
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@820 d57e44dd-8a1f-0410-8b47-8ef2f437770f

srpt/src/ib_srpt.c

index 60f2c1d..120a9cb 100644 (file)
@@ -1958,7 +1958,7 @@ static int srpt_detect(struct scst_tgt_template *tp)
                        sport = &sdev->port[i - 1];
                        sport->sdev = sdev;
                        sport->port = i;
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 20)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 20) && ! defined(BACKPORT_LINUX_WORKQUEUE_TO_2_6_19)
                        INIT_WORK(&sport->work, srpt_refresh_port_work, sport);
 #else
                        INIT_WORK(&sport->work, srpt_refresh_port_work);