linux-brain/arch/mips/netlogic/common
Paul Burton d7df7af5b9 MIPS: Netlogic: Exclude netlogic,xlp-pic code from XLR builds
[ Upstream commit 9799270aff ]

Code in arch/mips/netlogic/common/irq.c which handles the XLP PIC fails
to build in XLR configurations due to cpu_is_xlp9xx not being defined,
leading to the following build failure:

    arch/mips/netlogic/common/irq.c: In function ‘xlp_of_pic_init’:
    arch/mips/netlogic/common/irq.c:298:2: error: implicit declaration
    of function ‘cpu_is_xlp9xx’ [-Werror=implicit-function-declaration]
      if (cpu_is_xlp9xx()) {
      ^

Although the code was conditional upon CONFIG_OF which is indirectly
selected by CONFIG_NLM_XLP_BOARD but not CONFIG_NLM_XLR_BOARD, the
failing XLR with CONFIG_OF configuration can be configured manually or
by randconfig.

Fix the build failure by making the affected XLP PIC code conditional
upon CONFIG_CPU_XLP which is used to guard the inclusion of
asm/netlogic/xlp-hal/xlp.h that provides the required cpu_is_xlp9xx
function.

[ralf@linux-mips.org: Fixed up as per Jayachandran's suggestion.]

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: Jayachandran C <jchandra@broadcom.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/14524/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-11-21 09:23:28 +01:00
..
Makefile MIPS: Netlogic: Initialization when !CONFIG_SMP 2013-06-13 17:46:42 +02:00
earlycons.c MIPS: Netlogic: XLP9XX UART offset 2014-01-24 22:39:48 +01:00
irq.c MIPS: Netlogic: Exclude netlogic,xlp-pic code from XLR builds 2017-11-21 09:23:28 +01:00
nlm-dma.c dma-mapping: use unsigned long for dma_attrs 2016-08-04 08:50:07 -04:00
reset.S MIPS: Netlogic: Fix CP0_EBASE redefinition warnings 2016-05-09 12:00:05 +02:00
smp.c genirq: Remove irq argument from irq flow handlers 2015-09-16 15:47:51 +02:00
smpboot.S MIPS: Netlogic: Fix CP0_EBASE redefinition warnings 2016-05-09 12:00:05 +02:00
time.c MIPS: Netlogic: Fix double inclusion of <asm/netlogic/common.h>. 2015-04-08 01:10:51 +02:00