mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 10:41:26 +00:00
ib_srpt: Build fix for non-RHEL pre-2.6.25 kernels.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3538 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -2592,7 +2592,11 @@ static void srpt_cm_dreq_recv(struct ib_cm_id *cm_id)
|
||||
PRINT_ERROR("%s", "Sending DREP failed");
|
||||
break;
|
||||
default:
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 25)
|
||||
__WARN();
|
||||
#else
|
||||
WARN_ON(true);
|
||||
#endif
|
||||
break;
|
||||
}
|
||||
out:
|
||||
@@ -3050,7 +3054,11 @@ static int srpt_xmit_response(struct scst_cmd *scmnd)
|
||||
break;
|
||||
default:
|
||||
PRINT_ERROR("Unexpected command state %d", state);
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 25)
|
||||
__WARN();
|
||||
#else
|
||||
WARN_ON(true);
|
||||
#endif
|
||||
break;
|
||||
}
|
||||
spin_unlock(&ioctx->spinlock);
|
||||
|
||||
Reference in New Issue
Block a user