diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index 470cd82de..fa7a4a6c0 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -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); }