From: Arnd Bergmann <arnd@kernel.org>
To: Guo Ren <guoren@kernel.org>
Cc: Arnd Bergmann <arnd@arndb.de>,
linux-csky@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] csky: fix old style declaration in module.c
Date: Wed, 26 Jul 2023 16:57:36 +0200 [thread overview]
Message-ID: <20230726145740.1765323-1-arnd@kernel.org> (raw)
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
next reply other threads:[~2023-07-26 14:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-26 14:57 Arnd Bergmann [this message]
2023-07-29 4:59 ` [PATCH] csky: fix old style declaration in module.c 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230726145740.1765323-1-arnd@kernel.org \
--to=arnd@kernel.org \
--cc=arnd@arndb.de \
--cc=guoren@kernel.org \
--cc=linux-csky@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).