Skip to contentSkip to conversation

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

DISCUSSION Stephen Rothwell 2 participants 2 messages Nov 14, 2016 Linux-next tree

lore
Share & tools
lore
#0 lore raw

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]);
                                        ^

Introduced by commit

bc2bb1543e62 ("scsi: hpsa: use pci_alloc_irq_vectors and automatic irq affinity")

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 8 lines · Stephen Rothwell

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.