mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-19 03:31:26 +00:00
ib_srpt: Change one occurrence of WARN_ON() into __WARN().
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3916 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -1473,7 +1473,11 @@ static void srpt_handle_rdma_comp(struct srpt_rdma_ch *ch,
|
||||
} else if (opcode == SRPT_RDMA_ABORT) {
|
||||
ioctx->rdma_aborted = true;
|
||||
} else {
|
||||
WARN_ON(opcode != SRPT_RDMA_READ_LAST);
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 25)
|
||||
__WARN();
|
||||
#else
|
||||
WARN_ON(true);
|
||||
#endif
|
||||
PRINT_ERROR("%s[%d]: scmnd == NULL (opcode %d)", __func__,
|
||||
__LINE__, opcode);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user