diff mbox

net: mvneta: make mvneta_eth_tool_ops static

Message ID 20170216090739.2632-1-jszhang@marvell.com
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

Jisheng Zhang Feb. 16, 2017, 9:07 a.m. UTC
The mvneta_eth_tool_ops is only used internally in mvneta driver, so
make it static.

Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
---
 drivers/net/ethernet/marvell/mvneta.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Thomas Petazzoni Feb. 16, 2017, 9:37 a.m. UTC | #1
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 <jszhang@marvell.com>

Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>

Thomas
David Miller Feb. 17, 2017, 5:16 p.m. UTC | #2
From: Jisheng Zhang <jszhang@marvell.com>
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 <jszhang@marvell.com>

Applied to net-next, thanks.
diff mbox

Patch

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,