Skip to content
Snippets Groups Projects
Commit 14559f2f authored by Jesper Juhl's avatar Jesper Juhl Committed by Jiri Kosina
Browse files

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: default avatarJesper Juhl <jj@chaosbits.net>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent e04008eb
No related merge requests found
...@@ -357,7 +357,7 @@ static inline u32 s6dmac_channel_enabled(u32 dmac, int chan) ...@@ -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, static inline void s6dmac_dp_setup_group(u32 dmac, int port,
int nrch, int frrep) 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); BUG_ON(dmac != S6_REG_DPDMA);
if ((port < 0) || (port > 3) || (nrch < 1) || (nrch > 4)) if ((port < 0) || (port > 3) || (nrch < 1) || (nrch > 4))
return; return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment