mirror of
https://github.com/adulau/aha.git
synced 2024-12-30 20:56:23 +00:00
[POWERPC] Remove warning in mpic.c
arch/powerpc/sysdev/mpic.c: In function 'mpic_request_ipis': arch/powerpc/sysdev/mpic.c:1445: warning: ignoring return value of 'request_irq', declared with attribute warn_unused_result Signed-off-by: Olof Johansson <olof@lixom.net> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
parent
63df81ec3b
commit
d16f1b6483
1 changed files with 9 additions and 3 deletions
|
@ -1424,7 +1424,7 @@ unsigned int mpic_get_irq(void)
|
|||
void mpic_request_ipis(void)
|
||||
{
|
||||
struct mpic *mpic = mpic_primary;
|
||||
int i;
|
||||
int i, err;
|
||||
static char *ipi_names[] = {
|
||||
"IPI0 (call function)",
|
||||
"IPI1 (reschedule)",
|
||||
|
@ -1442,8 +1442,14 @@ void mpic_request_ipis(void)
|
|||
printk(KERN_ERR "Failed to map IPI %d\n", i);
|
||||
break;
|
||||
}
|
||||
request_irq(vipi, mpic_ipi_action, IRQF_DISABLED|IRQF_PERCPU,
|
||||
ipi_names[i], mpic);
|
||||
err = request_irq(vipi, mpic_ipi_action,
|
||||
IRQF_DISABLED|IRQF_PERCPU,
|
||||
ipi_names[i], mpic);
|
||||
if (err) {
|
||||
printk(KERN_ERR "Request of irq %d for IPI %d failed\n",
|
||||
vipi, i);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue