From: Thomas Gleixner Date: Wed, 5 Nov 2014 09:12:27 +0000 (+0100) Subject: x86, irq: Make UP version of irq_complete_move() an inline stub X-Git-Tag: v3.19-rc1~16^2~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f0e5bf758348e7205a33de50c894e75f9bc89714;p=thirdparty%2Fkernel%2Flinux.git x86, irq: Make UP version of irq_complete_move() an inline stub No point for having an empty real function. Signed-off-by: Thomas Gleixner --- diff --git a/arch/x86/include/asm/hw_irq.h b/arch/x86/include/asm/hw_irq.h index ef50db16bb44b..a7235777a4789 100644 --- a/arch/x86/include/asm/hw_irq.h +++ b/arch/x86/include/asm/hw_irq.h @@ -144,10 +144,11 @@ extern void clear_irq_vector(int irq, struct irq_cfg *cfg); extern void setup_vector_irq(int cpu); #ifdef CONFIG_SMP extern void send_cleanup_vector(struct irq_cfg *); +extern void irq_complete_move(struct irq_cfg *cfg); #else static inline void send_cleanup_vector(struct irq_cfg *c) { } +static inline void irq_complete_move(struct irq_cfg *c) { } #endif -extern void irq_complete_move(struct irq_cfg *cfg); extern int apic_retrigger_irq(struct irq_data *data); extern void apic_ack_edge(struct irq_data *data); diff --git a/arch/x86/kernel/apic/vector.c b/arch/x86/kernel/apic/vector.c index 9ba9bd4770510..fe326a3452fc7 100644 --- a/arch/x86/kernel/apic/vector.c +++ b/arch/x86/kernel/apic/vector.c @@ -452,8 +452,6 @@ void irq_force_complete_move(int irq) __irq_complete_move(cfg, cfg->vector); } -#else -void irq_complete_move(struct irq_cfg *cfg) { } #endif /*