ARM: 7548/1: include linux/sched.h in syscall.h
authorWade Farnsworth <wade_farnsworth@mentor.com>
Tue, 2 Oct 2012 16:08:30 +0000 (17:08 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Oct 2012 20:46:53 +0000 (05:46 +0900)
commita13cda3e7a332b57823986b4705216ea5ee1509f
tree3ed73a5296d5e46c631591775fa2842d6a8227aa
parent49c0cdb3ab648d7c79518f8b208695d2fdfc570d
ARM: 7548/1: include linux/sched.h in syscall.h

commit 8ef102c6b4bc996ff96ca52b34775fe931ec90c9 upstream.

The syscall tracing patch introduces a compile bug in lttng-modules
when the latter calls syscall_get_nr(), similar to the following:

<path-to-linux>/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.

Signed-off-by: Wade Farnsworth <wade_farnsworth@mentor.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/include/asm/syscall.h