Message ID | 20200429015824.36496-1-zhengbin13@huawei.com |
---|---|
State | New |
Headers | show |
Series | [-next] hinic: make symbol 'dump_mox_reg' static | expand |
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;
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> --- drivers/net/ethernet/huawei/hinic/hinic_hw_mbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.26.0.106.g9fadedd