[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAL2rwxpSNMDUD3gRwXmuMZ2ZMjAOdg=ebprhB2v3n8f+Z4AcxA@mail.gmail.com>
Date: Tue, 6 Aug 2019 12:35:45 +0530
From: Sumit Saxena <sumit.saxena@...adcom.com>
To: Qian Cai <cai@....pw>
Cc: "Martin K. Petersen" <martin.petersen@...cle.com>,
"James E.J. Bottomley" <jejb@...ux.ibm.com>,
Kashyap Desai <kashyap.desai@...adcom.com>,
Shivasharan Srikanteshwara
<shivasharan.srikanteshwara@...adcom.com>,
"PDL,MEGARAIDLINUX" <megaraidlinux.pdl@...adcom.com>,
Linux SCSI List <linux-scsi@...r.kernel.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] scsi/megaraid_sas: fix a compilation warning
On Fri, Jul 26, 2019 at 7:55 PM Qian Cai <cai@....pw> wrote:
>
> The commit de516379e85f ("scsi: megaraid_sas: changes to function
> prototypes") introduced a comilation warning due to it changed the
> function prototype of read_fw_status_reg() to take an instance pointer
> instead, but forgot to remove an unused variable.
>
> drivers/scsi/megaraid/megaraid_sas_fusion.c: In function
> 'megasas_fusion_update_can_queue':
> drivers/scsi/megaraid/megaraid_sas_fusion.c:326:39: warning: variable
> 'reg_set' set but not used [-Wunused-but-set-variable]
> struct megasas_register_set __iomem *reg_set;
> ^~~~~~~
> Fixes: de516379e85f ("scsi: megaraid_sas: changes to function prototypes")
> Signed-off-by: Qian Cai <cai@....pw>
Acked-by: Sumit Saxena <sumit.saxena@...adcom.com>
> ---
> drivers/scsi/megaraid/megaraid_sas_fusion.c | 3 ---
> 1 file changed, 3 deletions(-)
>
> diff --git a/drivers/scsi/megaraid/megaraid_sas_fusion.c b/drivers/scsi/megaraid/megaraid_sas_fusion.c
> index a32b3f0fcd15..e8092d59d575 100644
> --- a/drivers/scsi/megaraid/megaraid_sas_fusion.c
> +++ b/drivers/scsi/megaraid/megaraid_sas_fusion.c
> @@ -323,9 +323,6 @@ inline void megasas_return_cmd_fusion(struct megasas_instance *instance,
> {
> u16 cur_max_fw_cmds = 0;
> u16 ldio_threshold = 0;
> - struct megasas_register_set __iomem *reg_set;
> -
> - reg_set = instance->reg_set;
>
> /* ventura FW does not fill outbound_scratch_pad_2 with queue depth */
> if (instance->adapter_type < VENTURA_SERIES)
> --
> 1.8.3.1
>
Powered by blists - more mailing lists