Skip to contentSkip to conversation

drivers/scsi/NCR_D700.c: fix IRQ handler return type

PATCH In review [email protected] 2 participants 2 messages May 12, 2009 – May 13, 2009 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/scsi/NCR_D700.c: fix IRQ handler return type

From: Zhenwen Xu <[email protected]>

drivers/scsi/NCR_D700.c: In function `NCR_D700_probe':
drivers/scsi/NCR_D700.c:322: warning: passing argument 2 of request_irq' from incompatible pointer type drivers/scsi/NCR_D700.c:322: warning: passing argument 2 of request_irq' from incompatible pointer type drivers/scsi/NCR_D700.c:322: warning: passing argument 2 of `request_irq' from incompatible pointer type

---

 drivers/scsi/NCR_D700.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/NCR_D700.c renamed from drivers/scsi/NCR_D700.c~drivers-scsi-ncr_d700c-fix-irq-handler-return-type +1 -1
diff -puN drivers/scsi/NCR_D700.c~drivers-scsi-ncr_d700c-fix-irq-handler-return-type drivers/scsi/NCR_D700.c
@@ -224,7 +224,7 @@ NCR_D700_probe_one(struct NCR_D700_priva
 	return ret;
 }
 
-static int
+static irqreturn_t
 NCR_D700_intr(int irq, void *data)
 {
 	struct NCR_D700_private *p = (struct NCR_D700_private *)data;

_

#1 lore raw
Quoted 6 lines · On Tue, May 12, 2009 at 01:29:13PM -0700, [email protected] wrote:

From: Zhenwen Xu <[email protected]>

drivers/scsi/NCR_D700.c: In function `NCR_D700_probe':
drivers/scsi/NCR_D700.c:322: warning: passing argument 2 of request_irq' from incompatible pointer type drivers/scsi/NCR_D700.c:322: warning: passing argument 2 of request_irq' from incompatible pointer type drivers/scsi/NCR_D700.c:322: warning: passing argument 2 of `request_irq' from incompatible pointer type

Yes, this patch is made for 2.6.30.

Quoted 22 lines

---

 drivers/scsi/NCR_D700.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN drivers/scsi/NCR_D700.c~drivers-scsi-ncr_d700c-fix-irq-handler-return-type drivers/scsi/NCR_D700.c

drivers/scsi/NCR_D700.c renamed from drivers/scsi/NCR_D700.c~drivers-scsi-ncr_d700c-fix-irq-handler-return-type +1 -1
@@ -224,7 +224,7 @@ NCR_D700_probe_one(struct NCR_D700_priva
 	return ret;
 }
 
-static int
+static irqreturn_t
 NCR_D700_intr(int irq, void *data)
 {
 	struct NCR_D700_private *p = (struct NCR_D700_private *)data;

_

Signature · 2 lines
--------------------------------
http://zhwen.org - Open and Free