genirq: Force inlining of __irq_startup_managed to prevent build failure
authorGeert Uytterhoeven <geert@linux-m68k.org>
Tue, 4 Jul 2017 10:06:01 +0000 (12:06 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 4 Jul 2017 10:36:44 +0000 (12:36 +0200)
commit2372a519f63829b8effcdde5f4564a7e036294f0
tree4a0c554f5bda0f158c0cd2eb67c4aaeb637e3c99
parente5682b4eecb2b73282853d0ef314d3164b986997
genirq: Force inlining of __irq_startup_managed to prevent build failure

If CONFIG_SMP=n, and gcc (e.g. 4.1.2) decides not to inline
__irq_startup_managed(), the build fails with:

    kernel/built-in.o: In function `irq_startup':
    (.text+0x38ed8): undefined reference to `irq_set_affinity_locked'

Fix this by forcing inlining of __irq_startup_managed().

Fixes: 761ea388e8c4e3ac ("genirq: Handle managed irqs gracefully in irq_startup()")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Arnd Bergmann <arnd@arndb.de>
Link: http://lkml.kernel.org/r/1499162761-12398-1-git-send-email-geert@linux-m68k.org
kernel/irq/chip.c