diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index 28fd554c2..36b30606e 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -817,11 +817,11 @@ static int srpt_get_desc_tbl(struct srpt_ioctx *ioctx, struct srp_cmd *srp_cmd) * The pointer computations below will only be compiled correctly * if srp_cmd::add_data is declared as s8*, u8*, s8[] or u8[]. */ -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 30) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 31) BUILD_BUG_ON(!__same_type(srp_cmd->add_data[0], (s8)0) && !__same_type(srp_cmd->add_data[0], (u8)0)); #else - /* Note: the __same_type() macro has been introduced in kernel 2.6.30.*/ + /* Note: the __same_type() macro has been introduced in kernel 2.6.31.*/ #endif ret = 0;