All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] scsi: bnx2fc: make a bunch of symbols static in bnx2fc_fcoe.c
@ 2020-09-12  3:37 Jason Yan
  2020-09-16  1:30 ` Martin K. Petersen
  2020-09-22  3:56 ` Martin K. Petersen
  0 siblings, 2 replies; 3+ messages in thread
From: Jason Yan @ 2020-09-12  3:37 UTC (permalink / raw)
  To: skashyap, jhasan, GR-QLogic-Storage-Upstream, jejb,
	martin.petersen, lee.jones, linux-scsi
  Cc: Jason Yan, Hulk Robot

This eliminates the following sparse warning:

drivers/scsi/bnx2fc/bnx2fc_fcoe.c:53:1: warning: symbol
'bnx2fc_global_lock' was not declared. Should it be static?
drivers/scsi/bnx2fc/bnx2fc_fcoe.c:111:6: warning: symbol
'bnx2fc_devloss_tmo' was not declared. Should it be static?
drivers/scsi/bnx2fc/bnx2fc_fcoe.c:116:6: warning: symbol
'bnx2fc_max_luns' was not declared. Should it be static?
drivers/scsi/bnx2fc/bnx2fc_fcoe.c:121:6: warning: symbol
'bnx2fc_queue_depth' was not declared. Should it be static?
drivers/scsi/bnx2fc/bnx2fc_fcoe.c:126:6: warning: symbol
'bnx2fc_log_fka' 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_fcoe.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c
index 5cdeeb3539fd..6890bbe04a8c 100644
--- a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c
+++ b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c
@@ -50,7 +50,7 @@ struct workqueue_struct *bnx2fc_wq;
  * Here the io threads are per cpu but the l2 thread is just one
  */
 struct fcoe_percpu_s bnx2fc_global;
-DEFINE_SPINLOCK(bnx2fc_global_lock);
+static DEFINE_SPINLOCK(bnx2fc_global_lock);
 
 static struct cnic_ulp_ops bnx2fc_cnic_cb;
 static struct libfc_function_template bnx2fc_libfc_fcn_templ;
@@ -108,22 +108,22 @@ MODULE_PARM_DESC(debug_logging,
 		"\t\t0x10 - fcoe L2 fame related logs.\n"
 		"\t\t0xff - LOG all messages.");
 
-uint bnx2fc_devloss_tmo;
+static uint bnx2fc_devloss_tmo;
 module_param_named(devloss_tmo, bnx2fc_devloss_tmo, uint, S_IRUGO);
 MODULE_PARM_DESC(devloss_tmo, " Change devloss_tmo for the remote ports "
 	"attached via bnx2fc.");
 
-uint bnx2fc_max_luns = BNX2FC_MAX_LUN;
+static uint bnx2fc_max_luns = BNX2FC_MAX_LUN;
 module_param_named(max_luns, bnx2fc_max_luns, uint, S_IRUGO);
 MODULE_PARM_DESC(max_luns, " Change the default max_lun per SCSI host. Default "
 	"0xffff.");
 
-uint bnx2fc_queue_depth;
+static uint bnx2fc_queue_depth;
 module_param_named(queue_depth, bnx2fc_queue_depth, uint, S_IRUGO);
 MODULE_PARM_DESC(queue_depth, " Change the default queue depth of SCSI devices "
 	"attached via bnx2fc.");
 
-uint bnx2fc_log_fka;
+static uint bnx2fc_log_fka;
 module_param_named(log_fka, bnx2fc_log_fka, uint, S_IRUGO|S_IWUSR);
 MODULE_PARM_DESC(log_fka, " Print message to kernel log when fcoe is "
 	"initiating a FIP keep alive when debug logging is enabled.");
-- 
2.25.4


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

* Re: [PATCH] scsi: bnx2fc: make a bunch of symbols static in bnx2fc_fcoe.c
  2020-09-12  3:37 [PATCH] scsi: bnx2fc: make a bunch of symbols static in bnx2fc_fcoe.c Jason Yan
@ 2020-09-16  1:30 ` Martin K. Petersen
  2020-09-22  3:56 ` Martin K. Petersen
  1 sibling, 0 replies; 3+ messages in thread
From: Martin K. Petersen @ 2020-09-16  1:30 UTC (permalink / raw)
  To: Jason Yan
  Cc: skashyap, jhasan, GR-QLogic-Storage-Upstream, jejb,
	martin.petersen, lee.jones, linux-scsi, Hulk Robot


Jason,

> This eliminates the following sparse warning:
>
> drivers/scsi/bnx2fc/bnx2fc_fcoe.c:53:1: warning: symbol
> 'bnx2fc_global_lock' was not declared. Should it be static?
> drivers/scsi/bnx2fc/bnx2fc_fcoe.c:111:6: warning: symbol
> 'bnx2fc_devloss_tmo' was not declared. Should it be static?
> drivers/scsi/bnx2fc/bnx2fc_fcoe.c:116:6: warning: symbol
> 'bnx2fc_max_luns' was not declared. Should it be static?
> drivers/scsi/bnx2fc/bnx2fc_fcoe.c:121:6: warning: symbol
> 'bnx2fc_queue_depth' was not declared. Should it be static?
> drivers/scsi/bnx2fc/bnx2fc_fcoe.c:126:6: warning: symbol
> 'bnx2fc_log_fka' was not declared. Should it be static?

Applied to 5.10/scsi-staging, thanks!

-- 
Martin K. Petersen	Oracle Linux Engineering

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

* Re: [PATCH] scsi: bnx2fc: make a bunch of symbols static in bnx2fc_fcoe.c
  2020-09-12  3:37 [PATCH] scsi: bnx2fc: make a bunch of symbols static in bnx2fc_fcoe.c Jason Yan
  2020-09-16  1:30 ` Martin K. Petersen
@ 2020-09-22  3:56 ` Martin K. Petersen
  1 sibling, 0 replies; 3+ messages in thread
From: Martin K. Petersen @ 2020-09-22  3:56 UTC (permalink / raw)
  To: linux-scsi, Jason Yan, skashyap, lee.jones,
	GR-QLogic-Storage-Upstream, jejb, jhasan
  Cc: Martin K . Petersen, Hulk Robot

On Sat, 12 Sep 2020 11:37:58 +0800, Jason Yan wrote:

> This eliminates the following sparse warning:
> 
> drivers/scsi/bnx2fc/bnx2fc_fcoe.c:53:1: warning: symbol
> 'bnx2fc_global_lock' was not declared. Should it be static?
> drivers/scsi/bnx2fc/bnx2fc_fcoe.c:111:6: warning: symbol
> 'bnx2fc_devloss_tmo' was not declared. Should it be static?
> drivers/scsi/bnx2fc/bnx2fc_fcoe.c:116:6: warning: symbol
> 'bnx2fc_max_luns' was not declared. Should it be static?
> drivers/scsi/bnx2fc/bnx2fc_fcoe.c:121:6: warning: symbol
> 'bnx2fc_queue_depth' was not declared. Should it be static?
> drivers/scsi/bnx2fc/bnx2fc_fcoe.c:126:6: warning: symbol
> 'bnx2fc_log_fka' was not declared. Should it be static?

Applied to 5.10/scsi-queue, thanks!

[1/1] scsi: bnx2fc: Make a bunch of symbols static in bnx2fc_fcoe.c
      https://git.kernel.org/mkp/scsi/c/5c2ef01448e9

-- 
Martin K. Petersen	Oracle Linux Engineering

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

end of thread, other threads:[~2020-09-22  3:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-12  3:37 [PATCH] scsi: bnx2fc: make a bunch of symbols static in bnx2fc_fcoe.c Jason Yan
2020-09-16  1:30 ` Martin K. Petersen
2020-09-22  3:56 ` Martin K. Petersen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.