projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49a67b5
)
net: ethoc: Make needlessly global struct ethtool_ops static
author
Tobias Klauser
<tklauser@distanz.ch>
Tue, 17 Jan 2017 14:01:08 +0000
(15:01 +0100)
committer
David S. Miller
<davem@davemloft.net>
Tue, 17 Jan 2017 20:50:56 +0000
(15:50 -0500)
Make the needlessly global struct ethtool_ops ethoc_ethtool_ops static
to fix a sparse warning.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ethoc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/ethernet/ethoc.c
b/drivers/net/ethernet/ethoc.c
index 63e5e14174ee4bef2566384e6a95a997d0cb6945..c45757af9ade9b88ade0e427d8dbae231821fe5d 100644
(file)
--- a/
drivers/net/ethernet/ethoc.c
+++ b/
drivers/net/ethernet/ethoc.c
@@
-995,7
+995,7
@@
static int ethoc_set_ringparam(struct net_device *dev,
return 0;
}
-const struct ethtool_ops ethoc_ethtool_ops = {
+
static
const struct ethtool_ops ethoc_ethtool_ops = {
.get_regs_len = ethoc_get_regs_len,
.get_regs = ethoc_get_regs,
.nway_reset = phy_ethtool_nway_reset,