From: Roland Dreier Date: Thu, 1 Mar 2012 06:41:49 +0000 (-0800) Subject: [SCSI] be2iscsi: Remove unused OFFSET_IN_PAGE() macro X-Git-Tag: v3.5-rc1~172^2~91 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8643b32f275466f0b706e829150b7db49c11419c;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git [SCSI] be2iscsi: Remove unused OFFSET_IN_PAGE() macro Signed-off-by: Roland Dreier Reviewed-by: Mike Christie Acked-by: Jayamohan Kallickal Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/be2iscsi/be.h b/drivers/scsi/be2iscsi/be.h index 1d7b976..a50b6a9 100644 --- a/drivers/scsi/be2iscsi/be.h +++ b/drivers/scsi/be2iscsi/be.h @@ -132,10 +132,6 @@ struct be_ctrl_info { ((u32)((((size_t)(_address) & (PAGE_SIZE_4K - 1)) + \ (size) + (PAGE_SIZE_4K - 1)) >> PAGE_SHIFT_4K)) -/* Byte offset into the page corresponding to given address */ -#define OFFSET_IN_PAGE(addr) \ - ((size_t)(addr) & (PAGE_SIZE_4K-1)) - /* Returns bit offset within a DWORD of a bitfield */ #define AMAP_BIT_OFFSET(_struct, field) \ (((size_t)&(((_struct *)0)->field))%32)