aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Redfearn <matt.redfearn@mips.com>2017-10-16 06:06:49 -0400
committerJames Hogan <jhogan@kernel.org>2017-10-31 19:49:48 -0400
commit7f005f112f527f0762386c6fd182966d0e066eaf (patch)
treeef282f2f69fdc5f31795b878a7ea5424306bbce7
parentc496f3c08a83e57359509828e5b19eeb920b81b1 (diff)
MIPS: generic: Fix compilation error from include asm/mips-cpc.h
Commit e83f7e02af50c ("MIPS: CPS: Have asm/mips-cps.h include CM & CPC headers") adds a #error to arch/mips/include/asm/mips-cpc.h if it is included directly. While this commit replaced almost all direct includes of mips-cm.h and mips-cpc.h, 2 remain. With some defconfigs, mips-cps.h is indirectly included before mips-cpc.h, but in others this results in compilation errors: In file included from arch/mips/generic/init.c:23:0: ./arch/mips/include/asm/mips-cpc.h:12:3: error: #error Please include asm/mips-cps.h rather than asm/mips-cpc.h # error Please include asm/mips-cps.h rather than asm/mips-cpc.h In file included from arch/mips/kernel/smp.c:23:0: ./arch/mips/include/asm/mips-cpc.h:12:3: error: #error Please include asm/mips-cps.h rather than asm/mips-cpc.h # error Please include asm/mips-cps.h rather than asm/mips-cpc.h In both cases, fix this by including mips-cps.h instead. Fixes: e83f7e02af50c ("MIPS: CPS: Have asm/mips-cps.h include CM & CPC headers") Signed-off-by: Matt Redfearn <matt.redfearn@mips.com> Patchwork: https://patchwork.linux-mips.org/patch/17492/ Signed-off-by: James Hogan <jhogan@kernel.org>
-rw-r--r--arch/mips/generic/init.c2
-rw-r--r--arch/mips/kernel/smp.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/generic/init.c b/arch/mips/generic/init.c
index cf409ba358a1..5ba6fcc26fa7 100644
--- a/arch/mips/generic/init.c
+++ b/arch/mips/generic/init.c
@@ -20,7 +20,7 @@
20#include <asm/fw/fw.h> 20#include <asm/fw/fw.h>
21#include <asm/irq_cpu.h> 21#include <asm/irq_cpu.h>
22#include <asm/machine.h> 22#include <asm/machine.h>
23#include <asm/mips-cpc.h> 23#include <asm/mips-cps.h>
24#include <asm/prom.h> 24#include <asm/prom.h>
25#include <asm/smp-ops.h> 25#include <asm/smp-ops.h>
26#include <asm/time.h> 26#include <asm/time.h>
diff --git a/arch/mips/kernel/smp.c b/arch/mips/kernel/smp.c
index bbe19b64def5..3cd2f70d1c18 100644
--- a/arch/mips/kernel/smp.c
+++ b/arch/mips/kernel/smp.c
@@ -42,7 +42,7 @@
42#include <asm/processor.h> 42#include <asm/processor.h>
43#include <asm/idle.h> 43#include <asm/idle.h>
44#include <asm/r4k-timer.h> 44#include <asm/r4k-timer.h>
45#include <asm/mips-cpc.h> 45#include <asm/mips-cps.h>
46#include <asm/mmu_context.h> 46#include <asm/mmu_context.h>
47#include <asm/time.h> 47#include <asm/time.h>
48#include <asm/setup.h> 48#include <asm/setup.h>