projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9403cf2
)
net: pasemi: Make pasemi_mac_init_module static
author
YueHaibing
<yuehaibing@huawei.com>
Tue, 19 Mar 2019 15:39:06 +0000
(23:39 +0800)
committer
David S. Miller
<davem@davemloft.net>
Tue, 19 Mar 2019 21:13:37 +0000
(14:13 -0700)
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/pasemi/pasemi_mac.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/pasemi/pasemi_mac.c
b/drivers/net/ethernet/pasemi/pasemi_mac.c
index a5bf46310f60dc314b5ac5684f7ac9ac23ad15f1..55d686ed8cdfddbfc4077947a9e561539f060281 100644
(file)
--- 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;