From ca81d05dd78823d9de54d48704d5692c11a7227d Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Mon, 7 Dec 2009 08:51:58 +0000 Subject: [PATCH] Update: the __same_type() macro has been introduced in kernel version 2.6.31, not in 2.6.30. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1383 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;