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@xxxxxxxxxx> Signed-off-by: Jason Yan <yanaijie@xxxxxxxxxx> --- drivers/scsi/bnx2fc/bnx2fc.h | 2 ++ drivers/scsi/bnx2fc/bnx2fc_hwi.c | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) 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, -- 2.25.4