Skip to content

Commit

Permalink
hinic: make symbol 'dump_mox_reg' static
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Zheng Bin <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
zhengbin13 authored and davem330 committed May 1, 2020
1 parent e4e51da commit 2597912
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/huawei/hinic/hinic_hw_mbox.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 2597912

Please sign in to comment.