From: Jiang Liu Date: Mon, 27 Oct 2014 08:12:11 +0000 (+0800) Subject: x86, irq: Provide empty send_cleanup_vector() stub for UP builds X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e32c67e0cbb3921bffe1cc306628c0074d2f43bc;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git x86, irq: Provide empty send_cleanup_vector() stub for UP builds Define an empty send_cleanup_vector() for UP kernel to fix link error of undefined reference, which is used by uv_irq and irq_remapping. [ tglx: Made it an inline stub and moved it ahead of the file split changes ] Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Joerg Roedel Cc: Greg Kroah-Hartman Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc: Bjorn Helgaas Cc: Randy Dunlap Cc: Yinghai Lu Cc: Borislav Petkov Link: http://lkml.kernel.org/r/1414397531-28254-21-git-send-email-jiang.liu@linux.intel.com Signed-off-by: Thomas Gleixner --- diff --git a/arch/x86/include/asm/hw_irq.h b/arch/x86/include/asm/hw_irq.h index 4615906d83df..fa5d1e768ba3 100644 --- a/arch/x86/include/asm/hw_irq.h +++ b/arch/x86/include/asm/hw_irq.h @@ -153,7 +153,11 @@ struct irq_cfg { }; extern int assign_irq_vector(int, struct irq_cfg *, const struct cpumask *); +#ifdef CONFIG_SMP extern void send_cleanup_vector(struct irq_cfg *); +#else +static inline void send_cleanup_vector(struct irq_cfg *c) { } +#endif struct irq_data; int __ioapic_set_affinity(struct irq_data *, const struct cpumask *,