be2iscsi: Remove unused OFFSET_IN_PAGE() macro
Subsystems (2)
PATCH 1/1 be2iscsi: Remove unused OFFSET_IN_PAGE() macro
From: Roland Dreier <[email protected]>
--- drivers/scsi/be2iscsi/be.h | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-)
drivers/scsi/be2iscsi/be.h +0 -4
@@ -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)
Signature · 1 line
1.7.9
Quoted 12 lines · Roland Dreier
From: Roland Dreier <[email protected]>
Signed-off-by Roland Dreier <[email protected]>---
drivers/scsi/be2iscsi/be.h | 4 ----1 files changed, 0 insertions(+), 4 deletions(-)drivers/scsi/be2iscsi/be.h +0
-0
drivers/scsi/be2iscsi/be.h struct be_ctrl_info { · line 137
Quoted 10 lines
drivers/scsi/be2iscsi/be.h +0
-4@@ -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)
ping? the corresponding be2net patch is upstream as 97767a87f3be.
- R.
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Mike Christie
Reviewed-byQuoted 16 lines · Roland Dreier
Quoted 15 lines · Roland Dreier
From: Roland Dreier <[email protected]>
Signed-off-by Roland Dreier <[email protected]>--- drivers/scsi/be2iscsi/be.h | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-)drivers/scsi/be2iscsi/be.h +0
-0@@ -132,10 +132,6 @@ struct be_ctrl_info { ((u32)((((size_t )(_address) & (PAGE_SIZE_4K -1 )) + \ (size) + (PAGE_SIZE_4K -1 )) >>PAGE_SHIFT_4K ))
Quoted 10 lines
drivers/scsi/be2iscsi/be.h struct be_ctrl_info { · line 137
Quoted 7 lines
drivers/scsi/be2iscsi/be.h +0
-4-/* 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)ping? the corresponding be2net patch is upstream as
97767a87f3be.
Jay probably missed it, because he has been sick. Looks good to me.
-----Original Message-----
From: Mike Christie [mailto:[email protected]]
Sent: Tuesday, March 27, 2012 10:29 AM
To: Roland Dreier
Cc: Kallickal, Jayamohan; James E.J. Bottomley; [email protected]
Subject: Re: [PATCH] [SCSI] be2iscsi: Remove unused OFFSET_IN_PAGE() macro
Quoted 17 lines · Roland Dreier
Quoted 16 lines · Roland Dreier
From: Roland Dreier <[email protected]>
Signed-off-by Roland Dreier <[email protected]>--- drivers/scsi/be2iscsi/be.h | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-)drivers/scsi/be2iscsi/be.h +0
-0@@ -132,10 +132,6 @@ struct be_ctrl_info { ((u32)((((size_t )(_address) & (PAGE_SIZE_4K -1 )) + \ (size) + (PAGE_SIZE_4K -1 )) >>PAGE_SHIFT_4K ))
Quoted 10 lines
Quoted 7 lines
drivers/scsi/be2iscsi/be.h +0
-4-/* 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)ping? the corresponding be2net patch is upstream as
97767a87f3be.
Jay probably missed it, because he has been sick. Looks good to me.
Thanks Mike for taking care of this