Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/pmi: Irq handlers return irqreturn_t

Commit bedd30d986a05e32dc3eab874e4b9ed8a38058bb ("genirq: make irqreturn_t
an enum") from the genirq tree in next-20090319 caused this new warning:

arch/powerpc/sysdev/pmi.c: In function 'pmi_of_probe':
arch/powerpc/sysdev/pmi.c:166: warning: passing argument 2 of 'request_irq' from incompatible pointer type

Change the return type of the handler from "int" to "irqreturn_t".

Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

authored by

Stephen Rothwell and committed by
Benjamin Herrenschmidt
fb247449 56aa4129

+1 -1
+1 -1
arch/powerpc/sysdev/pmi.c
··· 50 50 51 51 static struct pmi_data *data; 52 52 53 - static int pmi_irq_handler(int irq, void *dev_id) 53 + static irqreturn_t pmi_irq_handler(int irq, void *dev_id) 54 54 { 55 55 u8 type; 56 56 int rc;