Skip to content

Commit

Permalink
csky: fix old style declaration in module.c
Browse files Browse the repository at this point in the history
With W=1, gcc warns about the inline keyword in the wrong place:

arch/csky/kernel/module.c:43:1: warning: 'inline' is not at beginning of declaration [-Wold-style-declaration]

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Guo Ren <guoren@kernel.org>
Signed-off-by: Guo Ren <guoren@kernel.org>
  • Loading branch information
Arnd Bergmann authored and Guo Ren committed Jul 29, 2023
1 parent 06c2afb commit 57427df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/csky/kernel/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ static void jsri_2_lrw_jsr(uint32_t *location)
}
}
#else
static void inline jsri_2_lrw_jsr(uint32_t *location)
static inline void jsri_2_lrw_jsr(uint32_t *location)
{
return;
}
Expand Down

0 comments on commit 57427df

Please sign in to comment.