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 3/3] net: ks8851_mll: fix "no previous prototype for 'ks_enable_qmu'" warning
Date: Wed,  9 Jan 2019 23:24:27 +0300	[thread overview]
Message-ID: <20190109202427.29535-4-antonynpavlov@gmail.com> (raw)
In-Reply-To: <20190109202427.29535-1-antonynpavlov@gmail.com>

The patch fixes the following compiler's warning:

drivers/net/ks8851_mll.c:438:6: warning: no previous prototype for ‘ks_enable_qmu’ [-Wmissing-prototypes]
 void ks_enable_qmu(struct ks_net *ks)
      ^~~~~~~~~~~~~

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

diff --git a/drivers/net/ks8851_mll.c b/drivers/net/ks8851_mll.c
index c0608112d5..b037e19633 100644
--- a/drivers/net/ks8851_mll.c
+++ b/drivers/net/ks8851_mll.c
@@ -435,7 +435,7 @@ static inline void ks_outblk(struct ks_net *ks, u16 *wptr, u32 len)
 		writew(*wptr++, ks->hw_addr);
 }
 
-void ks_enable_qmu(struct ks_net *ks)
+static void ks_enable_qmu(struct ks_net *ks)
 {
 	u16 w;
 
-- 
2.20.1


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

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