Re: [PATCH 1/1] unify DMA_..BIT_MASK definitions: v3.1

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <bbpetkov@...>
Cc: <linux-kernel@...>, <jeremy@...>, <muli@...>, <satyam@...>, <amitkale@...>, <achim_leubner@...>
Date: Friday, October 5, 2007 - 3:47 pm

On Tue, 18 Sep 2007 21:46:47 +0200
Borislav Petkov <bbpetkov@yahoo.de> wrote:


Now that you've done this, those DMA_xxBIT_MASK macros are pointless and
stupid and we should aim to get rid of them.


From: Andrew Morton <akpm@linux-foundation.org>

Now that we have DMA_BIT_MASK(), these macros are pointless.

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 include/linux/dma-mapping.h |    6 ++++++
 1 file changed, 6 insertions(+)

diff -puN include/linux/dma-mapping.h~a include/linux/dma-mapping.h
--- a/include/linux/dma-mapping.h~a
+++ a/include/linux/dma-mapping.h
@@ -15,6 +15,12 @@ enum dma_data_direction {
 
 #define DMA_BIT_MASK(n)	((1ULL<<(n))-1)
 
+/*
+ * 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	(~0ULL)
 #define DMA_48BIT_MASK	DMA_BIT_MASK(48)
 #define DMA_47BIT_MASK	DMA_BIT_MASK(47)
_

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/1] unify DMA_..BIT_MASK definitions: v3.1, Borislav Petkov, (Tue Sep 18, 3:46 pm)
Re: [PATCH 1/1] unify DMA_..BIT_MASK definitions: v3.1, Andrew Morton, (Fri Oct 5, 3:47 pm)
Re: [PATCH 1/1] unify DMA_..BIT_MASK definitions: v3.1, Jeremy Fitzhardinge, (Fri Oct 5, 4:43 pm)
Re: [PATCH 1/1] unify DMA_..BIT_MASK definitions: v3.1, Andrew Morton, (Fri Oct 5, 5:00 pm)
Re: [PATCH 1/1] unify DMA_..BIT_MASK definitions: v3.1, Borislav Petkov, (Sat Oct 6, 4:37 am)
Re: [PATCH 1/1] unify DMA_..BIT_MASK definitions: v3.1, Robert P. J. Day, (Fri Oct 5, 5:03 pm)
Re: [PATCH 1/1] unify DMA_..BIT_MASK definitions: v3.1, Andreas Schwab, (Fri Oct 5, 5:24 pm)
Re: [PATCH 1/1] unify DMA_..BIT_MASK definitions: v3.1, Jeremy Fitzhardinge, (Fri Oct 5, 5:28 pm)
Re: [PATCH 1/1] unify DMA_..BIT_MASK definitions: v3.1, Andrew Morton, (Fri Oct 5, 6:24 pm)
Re: [PATCH 1/1] unify DMA_..BIT_MASK definitions: v3.1, Jeremy Fitzhardinge, (Fri Oct 5, 6:32 pm)
Re: [PATCH 1/1] unify DMA_..BIT_MASK definitions: v3.1, Jeremy Fitzhardinge, (Fri Oct 5, 5:23 pm)
Re: [PATCH 1/1] unify DMA_..BIT_MASK definitions: v3.1, Borislav Petkov, (Sat Oct 6, 3:54 am)
Re: [PATCH 1/1] unify DMA_..BIT_MASK definitions: v3.1, Satyam Sharma, (Wed Sep 19, 11:03 am)