]> err.no Git - linux-2.6/commitdiff
sh: dma: use __maybe_unused
authorDavid Rientjes <rientjes@google.com>
Wed, 9 May 2007 09:35:28 +0000 (02:35 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 9 May 2007 19:30:57 +0000 (12:30 -0700)
There is no such thing as labeling a variable as __attribute__((used)).  Since
ts_shift is not referenced in inline assembly, we assume that we're simply
suppressing a warning here if the variable is declared but unreferenced.

Cc: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/asm-sh/cpu-sh3/dma.h
include/asm-sh/cpu-sh4/dma-sh7780.h
include/asm-sh/cpu-sh4/dma.h

index 954801b46022ec5fe5bdae0389be708f7d7db5fc..3a66dc458023ecb371e4496664fa9caf67b7cf66 100644 (file)
@@ -26,7 +26,7 @@ enum {
        XMIT_SZ_128BIT,
 };
 
-static unsigned int ts_shift[] __attribute__ ((used)) = {
+static unsigned int ts_shift[] __maybe_unused = {
        [XMIT_SZ_8BIT]          = 0,
        [XMIT_SZ_16BIT]         = 1,
        [XMIT_SZ_32BIT]         = 2,
index 6c90d28331b27d49d094efc4f9348b58435aca3f..71b426a6e482b169d3b532369de5e5207425ab09 100644 (file)
@@ -28,7 +28,7 @@ enum {
 /*
  * The DMA count is defined as the number of bytes to transfer.
  */
-static unsigned int __attribute__ ((used)) ts_shift[] = {
+static unsigned int ts_shift[] __maybe_unused = {
        [XMIT_SZ_8BIT]          = 0,
        [XMIT_SZ_16BIT]         = 1,
        [XMIT_SZ_32BIT]         = 2,
index c135e9cebd9c0c9a74f0479c3e16c1cfd09c38e6..36e26a964765ebcb0bd994d31ffbe742d0d83ef3 100644 (file)
@@ -53,7 +53,7 @@ enum {
 /*
  * The DMA count is defined as the number of bytes to transfer.
  */
-static unsigned int ts_shift[] __attribute__ ((used)) = {
+static unsigned int ts_shift[] __maybe_unused = {
        [XMIT_SZ_64BIT]         = 3,
        [XMIT_SZ_8BIT]          = 0,
        [XMIT_SZ_16BIT]         = 1,