Commit 7b094968 authored by zhengbin's avatar zhengbin Committed by David S. Miller

net: atlantic: make function 'aq_ethtool_get_priv_flags', 'aq_ethtool_set_priv_flags' static

Fix sparse warnings:

drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c:706:5: warning: symbol 'aq_ethtool_get_priv_flags' was not declared. Should it be static?
drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c:713:5: warning: symbol 'aq_ethtool_set_priv_flags' was not declared. Should it be static?
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Fixes: ea4b4d7f ("net: atlantic: loopback tests via private flags")
Signed-off-by: default avatarzhengbin <zhengbin13@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0ee0bbb0
...@@ -703,14 +703,14 @@ static void aq_set_msg_level(struct net_device *ndev, u32 data) ...@@ -703,14 +703,14 @@ static void aq_set_msg_level(struct net_device *ndev, u32 data)
aq_nic->msg_enable = data; aq_nic->msg_enable = data;
} }
u32 aq_ethtool_get_priv_flags(struct net_device *ndev) static u32 aq_ethtool_get_priv_flags(struct net_device *ndev)
{ {
struct aq_nic_s *aq_nic = netdev_priv(ndev); struct aq_nic_s *aq_nic = netdev_priv(ndev);
return aq_nic->aq_nic_cfg.priv_flags; return aq_nic->aq_nic_cfg.priv_flags;
} }
int aq_ethtool_set_priv_flags(struct net_device *ndev, u32 flags) static int aq_ethtool_set_priv_flags(struct net_device *ndev, u32 flags)
{ {
struct aq_nic_s *aq_nic = netdev_priv(ndev); struct aq_nic_s *aq_nic = netdev_priv(ndev);
struct aq_nic_cfg_s *cfg; struct aq_nic_cfg_s *cfg;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment