hinic: make symbol 'dump_mox_reg' static
authorZheng Bin <zhengbin13@huawei.com>
Wed, 29 Apr 2020 01:58:24 +0000 (09:58 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 May 2020 03:57:58 +0000 (20:57 -0700)
Fix sparse warnings:

drivers/net/ethernet/huawei/hinic/hinic_hw_mbox.c:601:6: warning: symbol 'dump_mox_reg' was not declared. Should it be static?

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zheng Bin <zhengbin13@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/huawei/hinic/hinic_hw_mbox.c

index f8626dfd192ea7ba18175e7a662f165abd161329..d5cf31529dbf97f6a7b8bc02635da16074a5f69b 100644 (file)
@@ -598,7 +598,7 @@ static void write_mbox_msg_attr(struct hinic_mbox_func_to_func *func_to_func,
                             HINIC_FUNC_CSR_MAILBOX_CONTROL_OFF, mbox_ctrl);
 }
 
-void dump_mox_reg(struct hinic_hwdev *hwdev)
+static void dump_mox_reg(struct hinic_hwdev *hwdev)
 {
        u32 val;