[RFC PATCH] hinic: hinic_rx_configure() can be static
From: kbuild test robot
Date: Mon Jun 03 2019 - 19:28:05 EST
Fixes: 7e8a92c6b00c ("hinic: add LRO support")
Signed-off-by: kbuild test robot <lkp@xxxxxxxxx>
---
hinic_main.c | 2 +-
hinic_port.c | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/net/ethernet/huawei/hinic/hinic_main.c b/drivers/net/ethernet/huawei/hinic/hinic_main.c
index 175fe53..530a205 100644
--- a/drivers/net/ethernet/huawei/hinic/hinic_main.c
+++ b/drivers/net/ethernet/huawei/hinic/hinic_main.c
@@ -372,7 +372,7 @@ static void free_rxqs(struct hinic_dev *nic_dev)
nic_dev->rxqs = NULL;
}
-int hinic_rx_configure(struct net_device *netdev)
+static int hinic_rx_configure(struct net_device *netdev)
{
struct hinic_dev *nic_dev = netdev_priv(netdev);
int err;
diff --git a/drivers/net/ethernet/huawei/hinic/hinic_port.c b/drivers/net/ethernet/huawei/hinic/hinic_port.c
index c1947b2..1783bd3 100644
--- a/drivers/net/ethernet/huawei/hinic/hinic_port.c
+++ b/drivers/net/ethernet/huawei/hinic/hinic_port.c
@@ -466,8 +466,8 @@ int hinic_set_max_qnum(struct hinic_dev *nic_dev, u8 num_rqs)
return 0;
}
-int hinic_set_rx_lro(struct hinic_dev *nic_dev, u8 ipv4_en, u8 ipv6_en,
- u8 max_wqe_num)
+static int hinic_set_rx_lro(struct hinic_dev *nic_dev, u8 ipv4_en, u8 ipv6_en,
+ u8 max_wqe_num)
{
struct hinic_hwdev *hwdev = nic_dev->hwdev;
struct hinic_hwif *hwif = hwdev->hwif;
@@ -494,7 +494,7 @@ int hinic_set_rx_lro(struct hinic_dev *nic_dev, u8 ipv4_en, u8 ipv6_en,
return 0;
}
-int hinic_set_rx_lro_timer(struct hinic_dev *nic_dev, u32 timer_value)
+static int hinic_set_rx_lro_timer(struct hinic_dev *nic_dev, u32 timer_value)
{
struct hinic_hwdev *hwdev = nic_dev->hwdev;
struct hinic_lro_timer lro_timer = {0};