From: Yongzhen Zhang <zhangyongzhen@kylinos.cn>
To: tsbogend@alpha.franken.de
Cc: linux-mips@vger.kernel.org, Yongzhen Zhang <zhangyongzhen@kylinos.cn>
Subject: [PATCH] MIPS: RB532: Declare prom_setup_cmdline() and rb532_gpio_init() static
Date: Fri, 15 Mar 2024 12:10:43 +0800 [thread overview]
Message-ID: <20240315041043.240833-1-zhangyongzhen@kylinos.cn> (raw)
early_tlb_init() and rb532_gpio_init() were local to file but not declared
static, leading to error:
arch/mips/rb532/prom.c:49:13: error: no previous prototype for ‘prom_setup_cmdline’ [-Werror=missing-prototypes]
49 | void __init prom_setup_cmdline(void)
| ^~~~~~~~~~~~~~~~~~
arch/mips/rb532/gpio.c:200:12: error: no previous prototype for ‘rb532_gpio_init’ [-Werror=missing-prototypes]
200 | int __init rb532_gpio_init(void)
| ^~~~~~~~~~~~~~~
Signed-off-by: Yongzhen Zhang <zhangyongzhen@kylinos.cn>
---
arch/mips/rb532/gpio.c | 2 +-
arch/mips/rb532/prom.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/mips/rb532/gpio.c b/arch/mips/rb532/gpio.c
index 29c21b9d42da..ea6ebfea4a67 100644
--- a/arch/mips/rb532/gpio.c
+++ b/arch/mips/rb532/gpio.c
@@ -197,7 +197,7 @@ void rb532_gpio_set_func(unsigned gpio)
}
EXPORT_SYMBOL(rb532_gpio_set_func);
-int __init rb532_gpio_init(void)
+static int __init rb532_gpio_init(void)
{
struct resource *r;
diff --git a/arch/mips/rb532/prom.c b/arch/mips/rb532/prom.c
index b11693715547..b88e89ec5894 100644
--- a/arch/mips/rb532/prom.c
+++ b/arch/mips/rb532/prom.c
@@ -46,7 +46,7 @@ static inline unsigned long tag2ul(char *arg, const char *tag)
return simple_strtoul(num, 0, 10);
}
-void __init prom_setup_cmdline(void)
+static void __init prom_setup_cmdline(void)
{
static char cmd_line[COMMAND_LINE_SIZE] __initdata;
char *cp, *board;
--
2.34.1
next reply other threads:[~2024-03-15 4:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-15 4:10 Yongzhen Zhang [this message]
2024-04-15 8:33 ` [PATCH] MIPS: RB532: Declare prom_setup_cmdline() and rb532_gpio_init() static Thomas Bogendoerfer
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=20240315041043.240833-1-zhangyongzhen@kylinos.cn \
--to=zhangyongzhen@kylinos.cn \
--cc=linux-mips@vger.kernel.org \
--cc=tsbogend@alpha.franken.de \
/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).