From: James Hogan Date: Sat, 4 Mar 2017 00:32:03 +0000 (+0000) Subject: MIPS: Include asm/ptrace.h now linux/sched.h doesn't X-Git-Tag: v4.11-rc6~25^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0c7e2bc87ea6c2eb6f369998f74a0278e64863e4;p=platform%2Fkernel%2Flinux-exynos.git MIPS: Include asm/ptrace.h now linux/sched.h doesn't Use of the task_pt_regs() based macros in MIPS' asm/processor.h for accessing the user context on the kernel stack need the definition of struct pt_regs from asm/ptrace.h. __own_fpu() in asm/fpu.h uses these macros but implicitly depended on linux/sched.h to include asm/ptrace.h. Since commit f780d89a0e82 ("sched/headers: Remove from ") however linux/sched.h no longer includes asm/ptrace.h, so include it explicitly from asm/fpu.h where it is needed instead. This fixes build errors such as: ./arch/mips/include/asm/fpu.h: In function '__own_fpu': ./arch/mips/include/asm/processor.h:385:31: error: invalid application of 'sizeof' to incomplete type 'struct pt_regs' THREAD_SIZE - 32 - sizeof(struct pt_regs)) ^ Fixes: f780d89a0e82 ("sched/headers: Remove from ") Signed-off-by: James Hogan Acked-by: Ingo Molnar Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/15386/ Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/include/asm/fpu.h b/arch/mips/include/asm/fpu.h index 321752b..1527efaf 100644 --- a/arch/mips/include/asm/fpu.h +++ b/arch/mips/include/asm/fpu.h @@ -20,6 +20,7 @@ #include #include #include +#include #include #include #include