MIPS: Fix build error when SMP is used without GIC
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 6 Mar 2016 21:28:56 +0000 (22:28 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Sun, 13 Mar 2016 09:56:48 +0000 (10:56 +0100)
commit7a50e4688dabb8005df39b2b992d76629b8af8aa
tree460bf393f149c238be5b3caf1a62a72f90ed8351
parent4b7b1ef2c2f83d702272555e8adb839a50ba0f8e
MIPS: Fix build error when SMP is used without GIC

The MIPS_GIC_IPI should only be selected when MIPS_GIC is also
selected, otherwise it results in a compile error. smp-gic.c uses some
functions from include/linux/irqchip/mips-gic.h like
plat_ipi_call_int_xlate() which are only added to the header file when
MIPS_GIC is set. The Lantiq SoC does not use the GIC, but supports SMP.
The calls top the functions from smp-gic.c are already protected by
some #ifdefs

The first part of this was introduced in commit 72e20142b2bf ("MIPS:
Move GIC IPI functions out of smp-cmp.c")

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Cc: Paul Burton <paul.burton@imgtec.com>
Cc: stable@vger.kernel.org # v3.15+
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/12774/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/Kconfig
This page took 0.043406 seconds and 5 git commands to generate.