From: Antony Pavlov <antonynpavlov@gmail.com>
To: barebox@lists.infradead.org
Subject: [PATCH 2/3] serial: amba-pl011: fix "no previous prototype for 'pl011_init_port'" warning
Date: Wed, 9 Jan 2019 23:24:26 +0300 [thread overview]
Message-ID: <20190109202427.29535-3-antonynpavlov@gmail.com> (raw)
In-Reply-To: <20190109202427.29535-1-antonynpavlov@gmail.com>
The patch fixes the following compiler's warning:
drivers/serial/amba-pl011.c:151:5: warning: no previous prototype for ‘pl011_init_port’ [-Wmissing-prototypes]
int pl011_init_port (struct console_device *cdev)
^~~~~~~~~~~~~~~
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
---
drivers/serial/amba-pl011.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/serial/amba-pl011.c b/drivers/serial/amba-pl011.c
index ce40f840f7..9b567e3cd2 100644
--- a/drivers/serial/amba-pl011.c
+++ b/drivers/serial/amba-pl011.c
@@ -148,7 +148,7 @@ static void pl011_rlcr(struct amba_uart_port *uart, u32 lcr)
}
}
-int pl011_init_port (struct console_device *cdev)
+static int pl011_init_port(struct console_device *cdev)
{
struct amba_uart_port *uart = to_amba_uart_port(cdev);
--
2.20.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2019-01-09 20:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-09 20:24 [PATCH 0/3] drivers: fix "no previous prototype" warnings Antony Pavlov
2019-01-09 20:24 ` [PATCH 1/3] w1: fix "no previous prototype for 'w1_found'" warning Antony Pavlov
2019-01-09 20:24 ` Antony Pavlov [this message]
2019-01-09 20:24 ` [PATCH 3/3] net: ks8851_mll: fix "no previous prototype for 'ks_enable_qmu'" warning Antony Pavlov
2019-01-10 8:33 ` [PATCH 0/3] drivers: fix "no previous prototype" warnings Sascha Hauer
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=20190109202427.29535-3-antonynpavlov@gmail.com \
--to=antonynpavlov@gmail.com \
--cc=barebox@lists.infradead.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