Skip to contentSkip to conversation

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

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

lore
Share & tools
lore
#0 lore raw

Hi James,

After merging the scsi tree, today's linux-next build (x86_64 allmodconfig) produced this warning:

drivers/scsi/hpsa.c: In function 'hpsa_slave_alloc':
drivers/scsi/hpsa.c:2033:5: warning: 'sd' may be used uninitialized in this function [-Wmaybe-uninitialized]
if (!sd)

     ^

Introduced by commit

4eb307f7b18d ("scsi: hpsa: use bus '3' for legacy HBA devices")

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

"Stephen" == Stephen Rothwell <[email protected]> writes:

Stephen,

Stephen> drivers/scsi/hpsa.c: In function 'hpsa_slave_alloc':
Stephen> drivers/scsi/hpsa.c:2033:5: warning: 'sd' may be used Stephen> uninitialized in this function [-Wmaybe-uninitialized]
Stephen> if (!sd)
Stephen> ^

Stephen> Introduced by commit

Stephen> 4eb307f7b18d ("scsi: hpsa: use bus '3' for legacy HBA
Stephen> devices")

Fixed this up.

Thanks!

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering