diff options
author | Jesper Juhl <jj@chaosbits.net> | 2011-07-09 17:17:59 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2011-07-11 08:13:47 -0400 |
commit | 14559f2f9a8b7e5d565c7de34a95097ee331c5cb (patch) | |
tree | 7be88e4fe9c5133ba7986f99fbf8535ee74d0d9d /arch/xtensa | |
parent | e04008eb38d8b0e3bca926c23cbea309edce164b (diff) |
XTENSA: static should be at beginning of declaration
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>
Diffstat (limited to 'arch/xtensa')
-rw-r--r-- | arch/xtensa/variants/s6000/include/variant/dmac.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/xtensa/variants/s6000/include/variant/dmac.h b/arch/xtensa/variants/s6000/include/variant/dmac.h index 89ab9484fb71..e81735b2a206 100644 --- a/arch/xtensa/variants/s6000/include/variant/dmac.h +++ b/arch/xtensa/variants/s6000/include/variant/dmac.h | |||
@@ -357,7 +357,7 @@ static inline u32 s6dmac_channel_enabled(u32 dmac, int chan) | |||
357 | static inline void s6dmac_dp_setup_group(u32 dmac, int port, | 357 | static inline void s6dmac_dp_setup_group(u32 dmac, int port, |
358 | int nrch, int frrep) | 358 | int nrch, int frrep) |
359 | { | 359 | { |
360 | const static u8 mask[4] = {0, 3, 1, 2}; | 360 | static const u8 mask[4] = {0, 3, 1, 2}; |
361 | BUG_ON(dmac != S6_REG_DPDMA); | 361 | BUG_ON(dmac != S6_REG_DPDMA); |
362 | if ((port < 0) || (port > 3) || (nrch < 1) || (nrch > 4)) | 362 | if ((port < 0) || (port > 3) || (nrch < 1) || (nrch > 4)) |
363 | return; | 363 | return; |