diff options
author | Hulk Robot <hulkci@huawei.com> | 2020-07-01 23:38:03 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-01 12:46:11 -0700 |
commit | 4f195d280347c00bc4e397c8a8cbffb2611ebeed (patch) | |
tree | 5cced5e205de62b78c6874b06ed97a859909c103 | |
parent | 2a6d6c31f136c136c05455788579586874a0525c (diff) |
qed: Make symbol 'qed_hw_err_type_descr' static
Fix sparse build warning:
drivers/net/ethernet/qlogic/qed/qed_main.c:2480:6: warning:
symbol 'qed_hw_err_type_descr' was not declared. Should it be static?
Signed-off-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/qlogic/qed/qed_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/qlogic/qed/qed_main.c b/drivers/net/ethernet/qlogic/qed/qed_main.c index 0cd6b8bf023a..98527e42f918 100644 --- a/drivers/net/ethernet/qlogic/qed/qed_main.c +++ b/drivers/net/ethernet/qlogic/qed/qed_main.c @@ -2451,7 +2451,7 @@ void qed_schedule_recovery_handler(struct qed_hwfn *p_hwfn) ops->schedule_recovery_handler(cookie); } -char *qed_hw_err_type_descr[] = { +static char *qed_hw_err_type_descr[] = { [QED_HW_ERR_FAN_FAIL] = "Fan Failure", [QED_HW_ERR_MFW_RESP_FAIL] = "MFW Response Failure", [QED_HW_ERR_HW_ATTN] = "HW Attention", |