Fix warnings in kernel build
cover Fix warnings in kernel build
From: "Ewan D. Milne" <[email protected]>
The patch to add uevents for certain Unit Attention codes had a couple of problems which were found by a kbuild test robot. Sorry about that, I will be more careful next time.
Ewan D. Milne (2):
scsi: Add missing @sdev parameter description to scsi_report_sense()
scsi: Remove unused variable "flags" from scsi_report_sense()
drivers/scsi/scsi_error.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
1.7.11.7
PATCH 1/2 scsi: Add missing @sdev parameter description to scsi_report_sense()
From: "Ewan D. Milne" <[email protected]>
--- drivers/scsi/scsi_error.c | 1 + 1 file changed, 1 insertion(+)
drivers/scsi/scsi_error.c +1 -0
@@ -241,6 +241,7 @@ static void scsi_report_lun_change(struct scsi_device *sdev)/** * scsi_report_sense - Examine scsi sense information and log messages for * certain conditions, also issue uevents for some of them. +* @sdev: Device reporting sense information * @sshdr: sshdr to be examined */ static void scsi_report_sense(struct scsi_device *sdev,
Signature · 1 line
1.7.11.7
PATCH 2/2 scsi: Remove unused variable "flags" from scsi_report_sense()
In reply to Ewan D. MilneFrom: "Ewan D. Milne" <[email protected]>
--- drivers/scsi/scsi_error.c | 1 - 1 file changed, 1 deletion(-)
drivers/scsi/scsi_error.c +0 -1
@@ -248,7 +248,6 @@ static void scsi_report_sense(struct scsi_device *sdev, struct scsi_sense_hdr *sshdr) {enum scsi_device_event evt_type =SDEV_EVT_MAXBITS ;/* i.e. none */ -unsigned long flags;if (sshdr->sense_key ==UNIT_ATTENTION ) {if (sshdr->asc ==0x3f && sshdr->ascq ==0x03 ) {
Signature · 1 line
1.7.11.7
James Bottomley
maintainerQuoted 5 lines · Ewan D. Milne
From: "Ewan D. Milne" <[email protected]>
The patch to add uevents for certain Unit Attention codes had a couple of problems which were found by a kbuild test robot. Sorry about that, I will be more careful next time.
I already did both of these based on Fengguang's checker results ...
James