From c5213776090c51112241a3d8b70cc329aab32bbd Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Mon, 4 May 2009 18:57:04 +0000 Subject: [PATCH] ib_srpt.c compiles now on RHEL 5.x systems where OFED has been installed. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@820 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index 60f2c1d07..120a9cba9 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -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);