Skip to contentSkip to conversation

be2iscsi: Remove unused OFFSET_IN_PAGE() macro

PATCH In review Roland Dreier 3 participants 4 messages Mar 1, 2012 – Mar 28, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
index 1d7b976..a50b6a9 100644
@@ -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
#1 lore raw
Quoted 12 lines · Roland Dreier

From: Roland Dreier <[email protected]>

---
 drivers/scsi/be2iscsi/be.h |    4 ----

 1 files changed, 0 insertions(+), 4 deletions(-)
drivers/scsi/be2iscsi/be.h +0 -0
index 1d7b976..a50b6a9 100644

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

Reviewed-by
#2 lore raw
Quoted 16 lines · Roland Dreier
Quoted 15 lines · Roland Dreier

From: Roland Dreier <[email protected]>

---
 drivers/scsi/be2iscsi/be.h |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
drivers/scsi/be2iscsi/be.h +0 -0
index 1d7b976..a50b6a9 100644
@@ -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.

Reviewed-by Mike Christie Acked-by
#3 lore raw

-----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]>

---
 drivers/scsi/be2iscsi/be.h |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
drivers/scsi/be2iscsi/be.h +0 -0
index 1d7b976..a50b6a9 100644
@@ -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