Re: [PATCH v4 00/12] qla2xxx: Feature updates for target.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 1/24/17, 9:24 AM, "Bart Van Assche" <bart.vanassche@xxxxxxxxxxx> wrote:

>On 01/19/2017 10:29 PM, Himanshu Madhani wrote:
>> Please consider this updated series for inclusion in target-pending.
>> 
>> Changes from v3 --> v4
>> 
>> o Fixed warnings reported by smatch tool.
>> o Fixed indentatation warnings reported by smatch tool.
>> 
>> Changes from v2 --> v3
>> 
>> o Cleaned up sparse warnings reported by you.
>> 
>> Changes from v1 --> v2
>> 
>> o Updated review comments and added Reviewed-by tags for necessary patches.
>> o We left the one particular review comment to add helper routine to
>>   be addressed at later time in the follow up bug fixes pathes which we
>>   will be sending in few weeks.
>> o Added patch to simplify SRB usage in driver.
>> o Cleaned up warnings reported by sparse option w=1.
>
>Hello Himanshu,
>
>One newly introduced sparse warning has not yet been addressed. The
>patch below addresses that warning. I would appreciate it if someone
>from the qla2xxx team could review this patch.
>
>Thanks,
>
>Bart.
>
>
>From: Bart Van Assche <bart.vanassche@xxxxxxxxxxx>
>Subject: [PATCH] qla2xxx: Avoid using variable-length arrays
>
>This patch does not change any functionality but avoids that sparse
>complains about using variable-length arrays.
>
>Signed-off-by: Bart Van Assche <bart.vanassche@xxxxxxxxxxx>
>Cc: Himanshu Madhani <himanshu.madhani@xxxxxxxxxx>
>Cc: Quinn Tran <quinn.tran@xxxxxxxxxx>
>---
> drivers/scsi/qla2xxx/qla_os.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
>diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c
>index 817c5940df76..ec7e36c33e26 100644
>--- a/drivers/scsi/qla2xxx/qla_os.c
>+++ b/drivers/scsi/qla2xxx/qla_os.c
>@@ -4272,8 +4272,8 @@ struct scsi_qla_host *qla2x00_create_host(struct scsi_host_template *sht,
> 	spin_lock_init(&vha->cmd_list_lock);
> 	init_waitqueue_head(&vha->fcport_waitQ);
> 
>-	vha->gnl.size =
>-	    sizeof(struct get_name_list_extended[ha->max_loop_id+1]);
>+	vha->gnl.size = sizeof(struct get_name_list_extended) *
>+			(ha->max_loop_id + 1);
> 	vha->gnl.l = dma_alloc_coherent(&ha->pdev->dev,
> 	    vha->gnl.size, &vha->gnl.ldma, GFP_KERNEL);
> 	if (!vha->gnl.l) {
>-- 
>2.11.0
>
>

Looks Good.  Thanks for correcting this. 

Acked-by: Himanshu Madhani <himanshu.madhani@xxxxxxxxxx>

��.n��������+%������w��{.n�����{������ܨ}���Ơz�j:+v�����w����ޙ��&�)ߡ�a����z�ޗ���ݢj��w�f




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux