diff options
author | Zheng Bin <zhengbin13@huawei.com> | 2020-04-29 09:58:24 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-04-30 20:57:58 -0700 |
commit | 2597912514925f6f06e85807cc9fc0fdfa630d11 (patch) | |
tree | c40a95649f2c45f21168dd4cc61639f1318199b4 /drivers/net/ethernet/huawei | |
parent | e4e51da66dc812176cca16b0f8a5b87b173deb5d (diff) | |
download | linux-stable-2597912514925f6f06e85807cc9fc0fdfa630d11.tar.gz linux-stable-2597912514925f6f06e85807cc9fc0fdfa630d11.tar.bz2 linux-stable-2597912514925f6f06e85807cc9fc0fdfa630d11.zip |
hinic: make symbol 'dump_mox_reg' static
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>
Diffstat (limited to 'drivers/net/ethernet/huawei')
-rw-r--r-- | drivers/net/ethernet/huawei/hinic/hinic_hw_mbox.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/huawei/hinic/hinic_hw_mbox.c b/drivers/net/ethernet/huawei/hinic/hinic_hw_mbox.c index f8626dfd192e..d5cf31529dbf 100644 --- a/drivers/net/ethernet/huawei/hinic/hinic_hw_mbox.c +++ b/drivers/net/ethernet/huawei/hinic/hinic_hw_mbox.c @@ -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; |