Skip to contentSkip to conversation

Fix warnings in kernel build

PATCH In review Ewan D. Milne 2 participants 4 messages Aug 26, 2013 SCSI

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

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
index 598afd9..cf6fd20 100644
@@ -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
#2 lore raw

PATCH 2/2 scsi: Remove unused variable "flags" from scsi_report_sense()

In reply to Ewan D. Milne

From: "Ewan D. Milne" <[email protected]>

---
 drivers/scsi/scsi_error.c | 1 -
 1 file changed, 1 deletion(-)
drivers/scsi/scsi_error.c +0 -1
index cf6fd20..7f95236 100644
@@ -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
maintainer
#3 lore raw
In reply to Ewan D. Milne
Quoted 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