[PATCH] MIPS: Fix build breakage caused by header file change

From: Guenter Roeck
Date: Sun Mar 05 2017 - 14:06:03 EST


Since commit f3ac60671954 ("sched/headers: Move task-stack related APIs
from <linux/sched.h> to <linux/sched/task_stack.h>"), various mips builds
fail as follows.

arch/mips/kernel/smp-mt.c: In function âvsmp_boot_secondaryâ:
arch/mips/include/asm/processor.h:384:41: error:
implicit declaration of function âtask_stack_pageâ

Fixes: f3ac60671954 ("sched/headers: Move task-stack related APIs ...")
Cc: Ingo Molnar <mingo@xxxxxxxxxx>
Signed-off-by: Guenter Roeck <linux@xxxxxxxxxxxx>
---
arch/mips/kernel/smp-mt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/mips/kernel/smp-mt.c b/arch/mips/kernel/smp-mt.c
index e077ea3e11fb..effc1ed18954 100644
--- a/arch/mips/kernel/smp-mt.c
+++ b/arch/mips/kernel/smp-mt.c
@@ -18,7 +18,7 @@
* Copyright (C) 2006 Ralf Baechle (ralf@xxxxxxxxxxxxxx)
*/
#include <linux/kernel.h>
-#include <linux/sched.h>
+#include <linux/sched/task_stack.h>
#include <linux/cpumask.h>
#include <linux/interrupt.h>
#include <linux/irqchip/mips-gic.h>
--
2.7.4