MIPS: smp-cmp: Use right include for task_struct
authorJason A. Donenfeld <Jason@zx2c4.com>
Mon, 23 Oct 2017 17:20:56 +0000 (19:20 +0200)
committerJames Hogan <jhogan@kernel.org>
Wed, 1 Nov 2017 22:16:37 +0000 (22:16 +0000)
commitf677b77050c144bd4c515b91ea48bd0efe82355e
tree46a5a54388be3672b412d8babef9a23e4db594ac
parent0464a53eba0af434b8516c2e01d881aa587cd517
MIPS: smp-cmp: Use right include for task_struct

When task_struct was moved, this MIPS code was neglected. Evidently
nobody is using it anymore. This fixes this build error:

In file included from ./arch/mips/include/asm/thread_info.h:15:0,
                 from ./include/linux/thread_info.h:37,
                 from ./include/asm-generic/current.h:4,
                 from ./arch/mips/include/generated/asm/current.h:1,
                 from ./include/linux/sched.h:11,
                 from arch/mips/kernel/smp-cmp.c:22:
arch/mips/kernel/smp-cmp.c: In function ‘cmp_boot_secondary’:
./arch/mips/include/asm/processor.h:384:41: error: implicit declaration
of function ‘task_stack_page’ [-Werror=implicit-function-declaration]
 #define __KSTK_TOS(tsk) ((unsigned long)task_stack_page(tsk) + \
                                         ^
arch/mips/kernel/smp-cmp.c:84:21: note: in expansion of macro ‘__KSTK_TOS’
  unsigned long sp = __KSTK_TOS(idle);
                     ^~~~~~~~~~

Fixes: f3ac60671954 ("sched/headers: Move task-stack related APIs from <linux/sched.h> to <linux/sched/task_stack.h>")
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Cc: <stable@vger.kernel.org> # 4.11+
Patchwork: https://patchwork.linux-mips.org/patch/17522/
Signed-off-by: James Hogan <jhogan@kernel.org>
arch/mips/kernel/smp-cmp.c