genirq: Add stub for set_handle_irq() when !GENERIC_IRQ_MULTI_HANDLER
authorZhen Lei <thunder.leizhen@huawei.com>
Thu, 24 Sep 2020 07:17:49 +0000 (15:17 +0800)
committerMarc Zyngier <maz@kernel.org>
Fri, 25 Sep 2020 15:33:57 +0000 (16:33 +0100)
commitea0c80d1764449acf2f70fdb25aec33800cd0348
tree04a8bfc4d8b1c2aedf02a53a1239f893d4944ea9
parentf4d51dffc6c01a9e94650d95ce0104964f8ae822
genirq: Add stub for set_handle_irq() when !GENERIC_IRQ_MULTI_HANDLER

In order to avoid compilation errors when a driver references set_handle_irq(),
but that the architecture doesn't select GENERIC_IRQ_MULTI_HANDLER,
add a stub function that will just WARN_ON_ONCE() if ever used.

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
[maz: commit message]
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20200924071754.4509-2-thunder.leizhen@huawei.com
include/linux/irq.h