XTENSA: static should be at beginning of declaration
authorJesper Juhl <jj@chaosbits.net>
Sat, 9 Jul 2011 21:17:59 +0000 (23:17 +0200)
committerJiri Kosina <jkosina@suse.cz>
Mon, 11 Jul 2011 12:13:47 +0000 (14:13 +0200)
Make sure that the 'static' keywork is at the beginning of declaration
for arch/xtensa/variants/s6000/include/variant/dmac.h

This gets rid of warnings like
  warning: â€˜static’ is not at beginning of declaration
when building with -Wold-style-declaration (and/or -Wextra which also
enables it).

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
arch/xtensa/variants/s6000/include/variant/dmac.h

index 89ab948..e81735b 100644 (file)
@@ -357,7 +357,7 @@ static inline u32 s6dmac_channel_enabled(u32 dmac, int chan)
 static inline void s6dmac_dp_setup_group(u32 dmac, int port,
                        int nrch, int frrep)
 {
-       const static u8 mask[4] = {0, 3, 1, 2};
+       static const u8 mask[4] = {0, 3, 1, 2};
        BUG_ON(dmac != S6_REG_DPDMA);
        if ((port < 0) || (port > 3) || (nrch < 1) || (nrch > 4))
                return;