[PATCH] net: mvneta: make mvneta_eth_tool_ops static

Subsystems: marvell mvneta ethernet driver, networking drivers, the rest

STALE3486d

3 messages, 3 authors, 2017-02-17 · open the first message on its own page

[PATCH] net: mvneta: make mvneta_eth_tool_ops static

From: Jisheng Zhang <hidden>
Date: 2017-02-16 09:12:21

The mvneta_eth_tool_ops is only used internally in mvneta driver, so
make it static.

Signed-off-by: Jisheng Zhang <redacted>
---
 drivers/net/ethernet/marvell/mvneta.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c
index fdf71720e707..61dd4462411c 100644
--- a/drivers/net/ethernet/marvell/mvneta.c
+++ b/drivers/net/ethernet/marvell/mvneta.c
@@ -3959,7 +3959,7 @@ static const struct net_device_ops mvneta_netdev_ops = {
 	.ndo_do_ioctl        = mvneta_ioctl,
 };
 
-const struct ethtool_ops mvneta_eth_tool_ops = {
+static const struct ethtool_ops mvneta_eth_tool_ops = {
 	.nway_reset	= phy_ethtool_nway_reset,
 	.get_link       = ethtool_op_get_link,
 	.set_coalesce   = mvneta_ethtool_set_coalesce,
-- 
2.11.0

Re: [PATCH] net: mvneta: make mvneta_eth_tool_ops static

From: Thomas Petazzoni <hidden>
Date: 2017-02-16 09:37:29

Hello,

On Thu, 16 Feb 2017 17:07:39 +0800, Jisheng Zhang wrote:
The mvneta_eth_tool_ops is only used internally in mvneta driver, so
make it static.

Signed-off-by: Jisheng Zhang <redacted>
Acked-by: Thomas Petazzoni <redacted>

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

Re: [PATCH] net: mvneta: make mvneta_eth_tool_ops static

From: David Miller <davem@davemloft.net>
Date: 2017-02-17 17:16:58

From: Jisheng Zhang <redacted>
Date: Thu, 16 Feb 2017 17:07:39 +0800
The mvneta_eth_tool_ops is only used internally in mvneta driver, so
make it static.

Signed-off-by: Jisheng Zhang <redacted>
Applied to net-next, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help