linux-next: build warning after merge of the scsi tree
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
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