From: Paul Mundt Date: Wed, 6 Oct 2010 07:44:10 +0000 (+0900) Subject: sh: intc: Fix build with IRQ balancing disabled. X-Git-Tag: firefly_0821_release~7613^2~3659^2~25 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6966fed9d8a74f178fc0dabdcc687cb1fe5b75fe;p=firefly-linux-kernel-4.4.55.git sh: intc: Fix build with IRQ balancing disabled. The balancing stubs obviously need to be static inline.. Signed-off-by: Paul Mundt --- diff --git a/drivers/sh/intc/internals.h b/drivers/sh/intc/internals.h index f02a47f74930..d49482c623fa 100644 --- a/drivers/sh/intc/internals.h +++ b/drivers/sh/intc/internals.h @@ -143,10 +143,11 @@ void intc_balancing_disable(unsigned int irq); void intc_set_dist_handle(unsigned int irq, struct intc_desc *desc, struct intc_desc_int *d, intc_enum id); #else -void intc_balancing_enable(unsigned int irq) { } -void intc_balancing_disable(unsigned int irq) { } -void intc_set_dist_handle(unsigned int irq, struct intc_desc *desc, - struct intc_desc_int *d, intc_enum id) { } +static inline void intc_balancing_enable(unsigned int irq) { } +static inline void intc_balancing_disable(unsigned int irq) { } +static inline void +intc_set_dist_handle(unsigned int irq, struct intc_desc *desc, + struct intc_desc_int *d, intc_enum id) { } #endif /* chip.c */