linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] scsi: fcoe: make fcoe_e_d_tov and fcoe_r_a_tov static
@ 2017-04-24 17:04 Colin King
  2017-04-25  7:07 ` Johannes Thumshirn
  2017-04-25 16:51 ` Martin K. Petersen
  0 siblings, 2 replies; 3+ messages in thread
From: Colin King @ 2017-04-24 17:04 UTC (permalink / raw)
  To: Johannes Thumshirn, James E . J . Bottomley, Martin K . Petersen,
	fcoe-devel, linux-scsi
  Cc: linux-kernel

From: Colin Ian King <colin.king@canonical.com>

These module parameter variables don't need global scope, make them static

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 drivers/scsi/fcoe/fcoe.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c
index ab7bc1505e0b..90939f66bc0d 100644
--- a/drivers/scsi/fcoe/fcoe.c
+++ b/drivers/scsi/fcoe/fcoe.c
@@ -63,11 +63,11 @@ unsigned int fcoe_debug_logging;
 module_param_named(debug_logging, fcoe_debug_logging, int, S_IRUGO|S_IWUSR);
 MODULE_PARM_DESC(debug_logging, "a bit mask of logging levels");
 
-unsigned int fcoe_e_d_tov = 2 * 1000;
+static unsigned int fcoe_e_d_tov = 2 * 1000;
 module_param_named(e_d_tov, fcoe_e_d_tov, int, S_IRUGO|S_IWUSR);
 MODULE_PARM_DESC(e_d_tov, "E_D_TOV in ms, default 2000");
 
-unsigned int fcoe_r_a_tov = 2 * 2 * 1000;
+static unsigned int fcoe_r_a_tov = 2 * 2 * 1000;
 module_param_named(r_a_tov, fcoe_r_a_tov, int, S_IRUGO|S_IWUSR);
 MODULE_PARM_DESC(r_a_tov, "R_A_TOV in ms, default 4000");
 
-- 
2.11.0

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

* Re: [PATCH] scsi: fcoe: make fcoe_e_d_tov and fcoe_r_a_tov static
  2017-04-24 17:04 [PATCH] scsi: fcoe: make fcoe_e_d_tov and fcoe_r_a_tov static Colin King
@ 2017-04-25  7:07 ` Johannes Thumshirn
  2017-04-25 16:51 ` Martin K. Petersen
  1 sibling, 0 replies; 3+ messages in thread
From: Johannes Thumshirn @ 2017-04-25  7:07 UTC (permalink / raw)
  To: Colin King
  Cc: Johannes Thumshirn, James E . J . Bottomley, Martin K . Petersen,
	fcoe-devel, linux-scsi, linux-kernel

On Mon, Apr 24, 2017 at 06:04:18PM +0100, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
> 
> These module parameter variables don't need global scope, make them static
> 
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
> ---

Looks good,
Acked-by: Johannes Thumshirn <jth@kernel.org>
-- 
Johannes Thumshirn                                          Storage
jthumshirn@suse.de                                +49 911 74053 689
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg)
Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850

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

* Re: [PATCH] scsi: fcoe: make fcoe_e_d_tov and fcoe_r_a_tov static
  2017-04-24 17:04 [PATCH] scsi: fcoe: make fcoe_e_d_tov and fcoe_r_a_tov static Colin King
  2017-04-25  7:07 ` Johannes Thumshirn
@ 2017-04-25 16:51 ` Martin K. Petersen
  1 sibling, 0 replies; 3+ messages in thread
From: Martin K. Petersen @ 2017-04-25 16:51 UTC (permalink / raw)
  To: Colin King
  Cc: Johannes Thumshirn, James E . J . Bottomley, Martin K . Petersen,
	fcoe-devel, linux-scsi, linux-kernel


Colin,

> These module parameter variables don't need global scope, make them
> static

Applied to 4.12/scsi-queue. Thanks!

-- 
Martin K. Petersen	Oracle Linux Engineering

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

end of thread, other threads:[~2017-04-25 16:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-24 17:04 [PATCH] scsi: fcoe: make fcoe_e_d_tov and fcoe_r_a_tov static Colin King
2017-04-25  7:07 ` Johannes Thumshirn
2017-04-25 16:51 ` Martin K. Petersen

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).