diff mbox series

scsi: bnx2fc: move declaration of 'bnx2fc_percpu' to bnx2fc.h

Message ID 20200921142658.874807-1-yanaijie@huawei.com (mailing list archive)
State New, archived
Headers show
Series scsi: bnx2fc: move declaration of 'bnx2fc_percpu' to bnx2fc.h | expand

Commit Message

Jason Yan Sept. 21, 2020, 2:26 p.m. UTC
This addresses the following sparse warning:

drivers/scsi/bnx2fc/bnx2fc_fcoe.c:23:1: warning: symbol
'__pcpu_scope_bnx2fc_percpu' was not declared. Should it be static?

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Jason Yan <yanaijie@huawei.com>
---
 drivers/scsi/bnx2fc/bnx2fc.h     | 2 ++
 drivers/scsi/bnx2fc/bnx2fc_hwi.c | 2 --
 2 files changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/drivers/scsi/bnx2fc/bnx2fc.h b/drivers/scsi/bnx2fc/bnx2fc.h
index b6e8ed757252..41b99a74613a 100644
--- a/drivers/scsi/bnx2fc/bnx2fc.h
+++ b/drivers/scsi/bnx2fc/bnx2fc.h
@@ -175,6 +175,8 @@  struct bnx2fc_percpu_s {
 	spinlock_t fp_work_lock;
 };
 
+DECLARE_PER_CPU(struct bnx2fc_percpu_s, bnx2fc_percpu);
+
 struct bnx2fc_fw_stats {
 	u64	fc_crc_cnt;
 	u64	fcoe_tx_pkt_cnt;
diff --git a/drivers/scsi/bnx2fc/bnx2fc_hwi.c b/drivers/scsi/bnx2fc/bnx2fc_hwi.c
index 08992095ce7a..cee66fcf8dec 100644
--- a/drivers/scsi/bnx2fc/bnx2fc_hwi.c
+++ b/drivers/scsi/bnx2fc/bnx2fc_hwi.c
@@ -15,8 +15,6 @@ 
 
 #include "bnx2fc.h"
 
-DECLARE_PER_CPU(struct bnx2fc_percpu_s, bnx2fc_percpu);
-
 static void bnx2fc_fastpath_notification(struct bnx2fc_hba *hba,
 					struct fcoe_kcqe *new_cqe_kcqe);
 static void bnx2fc_process_ofld_cmpl(struct bnx2fc_hba *hba,