Re: linux-next: build warning after merge of the scsi-mkp tree

From: Christoph Hellwig
Date: Mon Nov 14 2016 - 07:31:52 EST


On Mon, Nov 14, 2016 at 04:16:24PM +1100, Stephen Rothwell wrote:
> Hi Martin,
>
> After merging the scsi-mkp tree, today's linux-next build (x86_64
> allmodconfig) produced this warning:
>
> drivers/scsi/hpsa.c: In function 'hpsa_free_irqs':
> drivers/scsi/hpsa.c:8223:40: warning: 'i' may be used uninitialized in this function [-Wmaybe-uninitialized]
> free_irq(pci_irq_vector(h->pdev, 0), &h->q[i]);

The i here shold be h->intr_mode, I'll send a fix in a bit.