mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Antony Pavlov <antonynpavlov@gmail.com>
To: barebox@lists.infradead.org
Subject: [PATCH 1/3] w1: fix "no previous prototype for 'w1_found'" warning
Date: Wed,  9 Jan 2019 23:24:25 +0300	[thread overview]
Message-ID: <20190109202427.29535-2-antonynpavlov@gmail.com> (raw)
In-Reply-To: <20190109202427.29535-1-antonynpavlov@gmail.com>

The patch fixes the following compiler's warning:

drivers/w1/w1.c:459:6: warning: no previous prototype for ‘w1_found’ [-Wmissing-prototypes]
 void w1_found(struct w1_bus *bus, u64 rn)
      ^~~~~~~~

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
---
 drivers/w1/w1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/w1/w1.c b/drivers/w1/w1.c
index 694ffa853e..f74046c0b7 100644
--- a/drivers/w1/w1.c
+++ b/drivers/w1/w1.c
@@ -456,7 +456,7 @@ int w1_driver_register(struct w1_driver *drv)
 	return register_driver(&drv->drv);
 }
 
-void w1_found(struct w1_bus *bus, u64 rn)
+static void w1_found(struct w1_bus *bus, u64 rn)
 {
 	struct w1_device *dev;
 	u64 tmp = be64_to_cpu(rn);
-- 
2.20.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  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 ` Antony Pavlov [this message]
2019-01-09 20:24 ` [PATCH 2/3] serial: amba-pl011: fix "no previous prototype for 'pl011_init_port'" warning Antony Pavlov
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-2-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