Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1630823 > unrolled thread

[PATCH] scsi: stex: make S6flag static

Started byColin King <colin.king@canonical.com>
First post2017-04-25 19:40 +0200
Last post2017-04-27 00:40 +0200
Articles 3 — 3 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] scsi: stex: make S6flag static Colin King <colin.king@canonical.com> - 2017-04-25 19:40 +0200
    Re: [PATCH] scsi: stex: make S6flag static Charles Chiou <ch1102chiou@gmail.com> - 2017-04-26 04:50 +0200
    Re: [PATCH] scsi: stex: make S6flag static "Martin K. Petersen" <martin.petersen@oracle.com> - 2017-04-27 00:40 +0200

#1630823 — [PATCH] scsi: stex: make S6flag static

FromColin King <colin.king@canonical.com>
Date2017-04-25 19:40 +0200
Subject[PATCH] scsi: stex: make S6flag static
Message-ID<tAcBr-7Ga-5@gated-at.bofh.it>
From: Colin Ian King <colin.king@canonical.com>

This module specific flag can be made static as it does
not need to be in global scope.

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

diff --git a/drivers/scsi/stex.c b/drivers/scsi/stex.c
index 0751561b59da..9b20643ab49d 100644
--- a/drivers/scsi/stex.c
+++ b/drivers/scsi/stex.c
@@ -363,7 +363,7 @@ struct st_card_info {
 	u16 sts_count;
 };
 
-int S6flag;
+static int S6flag;
 static int stex_halt(struct notifier_block *nb, ulong event, void *buf);
 static struct notifier_block stex_notifier = {
 	stex_halt, NULL, 0
-- 
2.11.0

[toc] | [next] | [standalone]


#1631118

FromCharles Chiou <ch1102chiou@gmail.com>
Date2017-04-26 04:50 +0200
Message-ID<tAlbH-4FT-3@gated-at.bofh.it>
In reply to#1630823
Looks good to me.
Thanks for the improvement.

On 4/26/2017 1:36 AM, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
> 
> This module specific flag can be made static as it does
> not need to be in global scope.
> 
 > Reviewed-by: Charles Chiou <charles.chiou@tw.promise.com>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
> ---
>   drivers/scsi/stex.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/scsi/stex.c b/drivers/scsi/stex.c
> index 0751561b59da..9b20643ab49d 100644
> --- a/drivers/scsi/stex.c
> +++ b/drivers/scsi/stex.c
> @@ -363,7 +363,7 @@ struct st_card_info {
>   	u16 sts_count;
>   };
>   
> -int S6flag;
> +static int S6flag;
>   static int stex_halt(struct notifier_block *nb, ulong event, void *buf);
>   static struct notifier_block stex_notifier = {
>   	stex_halt, NULL, 0
> 

[toc] | [prev] | [next] | [standalone]


#1631770

From"Martin K. Petersen" <martin.petersen@oracle.com>
Date2017-04-27 00:40 +0200
Message-ID<tADLk-eg-9@gated-at.bofh.it>
In reply to#1630823
Colin,

> This module specific flag can be made static as it does not need to be
> in global scope.

Applied to 4.12/scsi-queue.

-- 
Martin K. Petersen	Oracle Linux Engineering

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web