Skip to content

Commit 4f195d2

Browse files
Hulk Robotdavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 2a6d6c3 commit 4f195d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/qlogic/qed/qed_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2451,7 +2451,7 @@ void qed_schedule_recovery_handler(struct qed_hwfn *p_hwfn)
24512451
ops->schedule_recovery_handler(cookie);
24522452
}
24532453

2454-
char *qed_hw_err_type_descr[] = {
2454+
static char *qed_hw_err_type_descr[] = {
24552455
[QED_HW_ERR_FAN_FAIL] = "Fan Failure",
24562456
[QED_HW_ERR_MFW_RESP_FAIL] = "MFW Response Failure",
24572457
[QED_HW_ERR_HW_ATTN] = "HW Attention",

0 commit comments

Comments
 (0)