summaryrefslogtreecommitdiffstats
path: root/kernel/irq/irqdomain.c
diff options
context:
space:
mode:
authorMatt Redfearn <matt.redfearn@imgtec.com>2016-04-25 08:14:24 +0100
committerThomas Gleixner <tglx@linutronix.de>2016-05-02 13:42:50 +0200
commit7cec18a3906b52e855c9386650c0226bbe594a4c (patch)
tree5cf713d9d41b200cffd6be97da73dee70011f45f /kernel/irq/irqdomain.c
parent01292cea0df86ed4a1eb6450d6eda375ef925716 (diff)
downloadblackbird-obmc-linux-7cec18a3906b52e855c9386650c0226bbe594a4c.tar.gz
blackbird-obmc-linux-7cec18a3906b52e855c9386650c0226bbe594a4c.zip
genirq: Add error code reporting to irq_{reserve,destroy}_ipi
Make these functions return appropriate error codes when something goes wrong. Previously irq_destroy_ipi returned void making it impossible to notify the caller if the request could not be fulfilled. Patch 1 in the series added another condition in which this could fail in addition to the existing ones. irq_reserve_ipi returned an unsigned int meaning it could only return 0 on failure and give the caller no indication as to why the request failed. As time goes on there are likely to be further conditions added in which these functions can fail. These APIs and the IPI IRQ domain are new in 4.6 and the number of existing call sites are low, changing the API now has little impact on the code, while making it easier for these functions to grow over time. Signed-off-by: Matt Redfearn <matt.redfearn@imgtec.com> Cc: linux-mips@linux-mips.org Cc: jason@lakedaemon.net Cc: marc.zyngier@arm.com Cc: ralf@linux-mips.org Cc: Qais Yousef <qsyousef@gmail.com> Cc: lisa.parratt@imgtec.com Cc: jiang.liu@linux.intel.com Link: http://lkml.kernel.org/r/1461568464-31701-2-git-send-email-matt.redfearn@imgtec.com Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/irq/irqdomain.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud