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

From: Stephen Rothwell
Date: Mon Feb 12 2018 - 22:00:37 EST


Hi Martin,

After merging the scsi-mkp tree, today's linux-next build (x86_64
allmodconfig) produced these warnings:

drivers/scsi/myrb.c: In function 'myrb_get_ldev_info':
drivers/scsi/myrb.c:428:10: warning: 'ldev_num' may be used uninitialized in this function [-Wmaybe-uninitialized]
sdev = scsi_device_lookup(shost, myrb_logical_channel(shost),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ldev_num, 0);
~~~~~~~~~~~~
drivers/scsi/myrs.c: In function 'myrs_handle_scsi':
drivers/scsi/myrs.c:2175:6: warning: 'status' may be used uninitialized in this function [-Wmaybe-uninitialized]
if (status == DAC960_V2_AbnormalCompletion &&
^
drivers/scsi/myrs.c: In function 'myrs_log_event':
drivers/scsi/myrs.c:988:21: warning: 'cmd_specific' may be used uninitialized in this function [-Wmaybe-uninitialized]
cmd_specific[0], cmd_specific[1],
^
drivers/scsi/myrs.c:986:19: warning: 'sense_info' may be used uninitialized in this function [-Wmaybe-uninitialized]
sense_info[0], sense_info[1],
^

Introduced by commits

dd47c1072226 ("scsi: myrb: Add Mylex RAID controller (block interface)")
8a8606895947 ("scsi: myrs: Add Mylex RAID controller (SCSI interface)")

--
Cheers,
Stephen Rothwell