mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] csky: fix old style declaration in module.c
@ 2023-07-26 14:57 Arnd Bergmann
  2023-07-29  4:59 ` Guo Ren
  0 siblings, 1 reply; 6+ messages in thread
From: Arnd Bergmann @ 2023-07-26 14:57 UTC (permalink / raw)
  To: Guo Ren; +Cc: Arnd Bergmann, linux-csky, linux-kernel

From: Arnd Bergmann <arnd@arndb.de>

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>
---
 arch/csky/kernel/module.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/csky/kernel/module.c b/arch/csky/kernel/module.c
index f11b3e5733448..0b56a8cd12a3d 100644
--- 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;
 }
-- 
2.39.2


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-07-29 23:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-26 14:57 [PATCH] csky: fix old style declaration in module.c Arnd Bergmann
2023-07-29  4:59 ` Guo Ren
2023-07-29  7:06   ` Arnd Bergmann
2023-07-29  8:04     ` Arnd Bergmann
2023-07-29 23:19       ` Guo Ren
2023-07-29 23:18     ` Guo Ren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®