From: Wade Farnsworth Date: Tue, 2 Oct 2012 16:08:30 +0000 (+0100) Subject: ARM: 7548/1: include linux/sched.h in syscall.h X-Git-Tag: v3.7-rc1~94^2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8ef102c6b4bc996ff96ca52b34775fe931ec90c9;p=profile%2Fivi%2Fkernel-x86-ivi.git ARM: 7548/1: include linux/sched.h in syscall.h The syscall tracing patch introduces a compile bug in lttng-modules when the latter calls syscall_get_nr(), similar to the following: /arch/arm/include/asm/syscall.h:21:2: error: implicit declaration of function 'task_thread_info' [-Werror=implicit-function-declaration] The issue is that we are using task_thread_info() in the syscall_get_nr() function in asm/syscall.h, but not explicitly including sched.h from this file, so we can expect this bug might surface any time that syscall_get_nr() is called. Explicitly including sched.h solves the problem. Cc: [3.5, 3.6] Signed-off-by: Wade Farnsworth Acked-by: Will Deacon Signed-off-by: Russell King --- diff --git a/arch/arm/include/asm/syscall.h b/arch/arm/include/asm/syscall.h index c334a23..fce38a6 100644 --- a/arch/arm/include/asm/syscall.h +++ b/arch/arm/include/asm/syscall.h @@ -8,6 +8,7 @@ #define _ASM_ARM_SYSCALL_H #include +#include extern const unsigned long sys_call_table[];