Skip to content

Commit

Permalink
include/linux/dma-mapping.h: remove DMA_xxBIT_MASK macros
Browse files Browse the repository at this point in the history
git grep shows there are no users in tree, so we can remove them safely.

Signed-off-by: WANG Cong <[email protected]>
Acked-by: FUJITA Tomonori <[email protected]>
Acked-by: Jiri Slaby <[email protected]>
Acked-by: Vinod Koul <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
congwang authored and torvalds committed Jul 26, 2011
1 parent 947be5d commit 91f6cdf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 28 deletions.
7 changes: 0 additions & 7 deletions Documentation/feature-removal-schedule.txt
Original file line number Diff line number Diff line change
Expand Up @@ -460,13 +460,6 @@ Who: FUJITA Tomonori <[email protected]>

----------------------------

What: DMA_xxBIT_MASK macros
When: Jun 2011
Why: DMA_xxBIT_MASK macros were replaced with DMA_BIT_MASK() macros.
Who: FUJITA Tomonori <[email protected]>

----------------------------

What: iwlwifi disable_hw_scan module parameters
When: 3.0
Why: Hareware scan is the prefer method for iwlwifi devices for
Expand Down
21 changes: 0 additions & 21 deletions include/linux/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,27 +46,6 @@ struct dma_map_ops {

#define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))

typedef u64 DMA_nnBIT_MASK __deprecated;

/*
* NOTE: do not use the below macros in new code and do not add new definitions
* here.
*
* Instead, just open-code DMA_BIT_MASK(n) within your driver
*/
#define DMA_64BIT_MASK (DMA_nnBIT_MASK)DMA_BIT_MASK(64)
#define DMA_48BIT_MASK (DMA_nnBIT_MASK)DMA_BIT_MASK(48)
#define DMA_47BIT_MASK (DMA_nnBIT_MASK)DMA_BIT_MASK(47)
#define DMA_40BIT_MASK (DMA_nnBIT_MASK)DMA_BIT_MASK(40)
#define DMA_39BIT_MASK (DMA_nnBIT_MASK)DMA_BIT_MASK(39)
#define DMA_35BIT_MASK (DMA_nnBIT_MASK)DMA_BIT_MASK(35)
#define DMA_32BIT_MASK (DMA_nnBIT_MASK)DMA_BIT_MASK(32)
#define DMA_31BIT_MASK (DMA_nnBIT_MASK)DMA_BIT_MASK(31)
#define DMA_30BIT_MASK (DMA_nnBIT_MASK)DMA_BIT_MASK(30)
#define DMA_29BIT_MASK (DMA_nnBIT_MASK)DMA_BIT_MASK(29)
#define DMA_28BIT_MASK (DMA_nnBIT_MASK)DMA_BIT_MASK(28)
#define DMA_24BIT_MASK (DMA_nnBIT_MASK)DMA_BIT_MASK(24)

#define DMA_MASK_NONE 0x0ULL

static inline int valid_dma_direction(int dma_direction)
Expand Down

0 comments on commit 91f6cdf

Please sign in to comment.