netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] qed: Make symbol 'qed_hw_err_type_descr' static
@ 2020-07-01 15:38 Wei Yongjun
  2020-07-01 19:46 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Wei Yongjun @ 2020-07-01 15:38 UTC (permalink / raw)
  To: hulkci, Ariel Elior, GR-everest-linux-l2, Jakub Kicinski,
	Alexei Starovoitov, Daniel Borkmann, Jesper Dangaard Brouer,
	John Fastabend
  Cc: netdev, bpf

From: Hulk Robot <hulkci@huawei.com>

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>
---
 drivers/net/ethernet/qlogic/qed/qed_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/qlogic/qed/qed_main.c b/drivers/net/ethernet/qlogic/qed/qed_main.c
index 11367a248d55..0a23b788b842 100644
--- a/drivers/net/ethernet/qlogic/qed/qed_main.c
+++ b/drivers/net/ethernet/qlogic/qed/qed_main.c
@@ -2477,7 +2477,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",


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH net-next] qed: Make symbol 'qed_hw_err_type_descr' static
  2020-07-01 15:38 [PATCH net-next] qed: Make symbol 'qed_hw_err_type_descr' static Wei Yongjun
@ 2020-07-01 19:46 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2020-07-01 19:46 UTC (permalink / raw)
  To: weiyongjun1
  Cc: hulkci, aelior, GR-everest-linux-l2, kuba, ast, daniel, hawk,
	john.fastabend, netdev, bpf

From: Wei Yongjun <weiyongjun1@huawei.com>
Date: Wed, 1 Jul 2020 23:38:03 +0800

> From: Hulk Robot <hulkci@huawei.com>
> 
> 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>

Applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-07-01 19:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-01 15:38 [PATCH net-next] qed: Make symbol 'qed_hw_err_type_descr' static Wei Yongjun
2020-07-01 19:46 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).