You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
2.6 KiB
67 lines
2.6 KiB
From ec26a489ae052876957341c49686c30762e8a532 Mon Sep 17 00:00:00 2001
|
|
From: Igor Russkikh <irusskik@redhat.com>
|
|
Date: Fri, 6 Nov 2020 18:37:09 -0500
|
|
Subject: [PATCH 052/139] [netdrv] net: atlantic: make function
|
|
'aq_ethtool_get_priv_flags', 'aq_ethtool_set_priv_flags' static
|
|
|
|
Message-id: <1604687916-15087-53-git-send-email-irusskik@redhat.com>
|
|
Patchwork-id: 338477
|
|
Patchwork-instance: patchwork
|
|
O-Subject: [RHEL8.4 BZ 1857861 052/139] net: atlantic: make function 'aq_ethtool_get_priv_flags', 'aq_ethtool_set_priv_flags' static
|
|
Bugzilla: 1857861
|
|
RH-Acked-by: David Arcari <darcari@redhat.com>
|
|
RH-Acked-by: John Linville <linville@redhat.com>
|
|
RH-Acked-by: Tony Camuso <tcamuso@redhat.com>
|
|
|
|
Bugzilla: http://bugzilla.redhat.com/1857861
|
|
|
|
commit 7b094968ccbb55da9e9fa749bdfd9b90b57d64e5
|
|
Author: zhengbin <zhengbin13@huawei.com>
|
|
Date: Tue Nov 12 14:59:42 2019 +0800
|
|
|
|
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: Hulk Robot <hulkci@huawei.com>
|
|
Fixes: ea4b4d7fc106 ("net: atlantic: loopback tests via private flags")
|
|
Signed-off-by: zhengbin <zhengbin13@huawei.com>
|
|
Signed-off-by: David S. Miller <davem@davemloft.net>
|
|
|
|
Signed-off-by: Igor Russkikh <irusskik@redhat.com>
|
|
|
|
Cc: David Arcari <darcari@redhat.com>
|
|
Cc: Igor Russkikh <irusskik@redhat.com>
|
|
Signed-off-by: Jan Stancek <jstancek@redhat.com>
|
|
---
|
|
drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c b/drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c
|
|
index 6353a5c5ed27..a1f99bef4a68 100644
|
|
--- a/drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c
|
|
+++ b/drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c
|
|
@@ -703,14 +703,14 @@ static void aq_set_msg_level(struct net_device *ndev, u32 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);
|
|
|
|
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_cfg_s *cfg;
|
|
--
|
|
2.13.6
|
|
|