linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] net: pasemi: Make pasemi_mac_init_module static
@ 2019-03-19 15:39 Yue Haibing
  2019-03-19 21:13 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Yue Haibing @ 2019-03-19 15:39 UTC (permalink / raw)
  To: davem, keescook, mcgrof, mpe; +Cc: linux-kernel, netdev, YueHaibing

From: YueHaibing <yuehaibing@huawei.com>

Fix sparse warning:

drivers/net/ethernet/pasemi/pasemi_mac.c:1842:5: warning:
 symbol 'pasemi_mac_init_module' was not declared. Should it be static?

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/net/ethernet/pasemi/pasemi_mac.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/pasemi/pasemi_mac.c b/drivers/net/ethernet/pasemi/pasemi_mac.c
index a5bf463..382fdc8 100644
--- a/drivers/net/ethernet/pasemi/pasemi_mac.c
+++ b/drivers/net/ethernet/pasemi/pasemi_mac.c
@@ -1839,7 +1839,7 @@ static void __exit pasemi_mac_cleanup_module(void)
 	pci_unregister_driver(&pasemi_mac_driver);
 }
 
-int pasemi_mac_init_module(void)
+static int pasemi_mac_init_module(void)
 {
 	int err;
 
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH net-next] net: pasemi: Make pasemi_mac_init_module static
  2019-03-19 15:39 [PATCH net-next] net: pasemi: Make pasemi_mac_init_module static Yue Haibing
@ 2019-03-19 21:13 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2019-03-19 21:13 UTC (permalink / raw)
  To: yuehaibing; +Cc: keescook, mcgrof, mpe, linux-kernel, netdev

From: Yue Haibing <yuehaibing@huawei.com>
Date: Tue, 19 Mar 2019 23:39:06 +0800

> From: YueHaibing <yuehaibing@huawei.com>
> 
> Fix sparse warning:
> 
> drivers/net/ethernet/pasemi/pasemi_mac.c:1842:5: warning:
>  symbol 'pasemi_mac_init_module' was not declared. Should it be static?
> 
> Signed-off-by: YueHaibing <yuehaibing@huawei.com>

Applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-03-19 21:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-19 15:39 [PATCH net-next] net: pasemi: Make pasemi_mac_init_module static Yue Haibing
2019-03-19 21:13 ` David Miller

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 NNTP newsgroup(s).