projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06c2afb
)
csky: fix old style declaration in module.c
author
Arnd Bergmann
<arnd@arndb.de>
Wed, 26 Jul 2023 14:57:36 +0000
(16:57 +0200)
committer
Guo Ren
<guoren@linux.alibaba.com>
Sat, 29 Jul 2023 23:25:46 +0000
(19:25 -0400)
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>
arch/csky/kernel/module.c
patch
|
blob
|
history
diff --git
a/arch/csky/kernel/module.c
b/arch/csky/kernel/module.c
index f11b3e5733448202e4c04fe131a84c898f8ce5f2..0b56a8cd12a3df329225f9a30fb898706e01df5a 100644
(file)
--- a/
arch/csky/kernel/module.c
+++ b/
arch/csky/kernel/module.c
@@
-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;
}