be2net: Remove unused OFFSET_IN_PAGE() macro
Subsystems (3)
PATCH 1/1 be2net: Remove unused OFFSET_IN_PAGE() macro
From: Roland Dreier <[email protected]>
Signed-off-by Roland Dreier <[email protected]>
--- drivers/net/ethernet/emulex/benet/be.h | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-)
drivers/net/ethernet/emulex/benet/be.h +0 -4
@@ -428,10 +428,6 @@ extern const struct ethtool_ops be_ethtool_ops; ((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
From: Roland Dreier <[email protected]>
Date: Wed, 29 Feb 2012 22:40:46 -0800
Quoted 3 lines
From: Roland Dreier <[email protected]>
Signed-off-by Roland Dreier <[email protected]>
Applied.
I assume you are aware of the same issue in the be2iscsi driver.
Quoted 1 line · David Miller
I assume you are aware of the same issue in the be2iscsi driver.
Yeah, patch already sent:
http://www.spinics.net/lists/linux-scsi/msg57754.html
but the SCSI maintainer is not as responsive as the networking one ;)
- R.