]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 5 Oct 2012 09:38:13 +0000 (10:38 +0100)
commit01b42fe7e85e0413fc35c255e3d90e8dd78fa98c
tree9588993db4623db333a6d819a9a97cb0cfc076d5
parentef88a450e1a58c9fe6d14701aaccef50a85335a4
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:

<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.

Cc: <stable@vger.kernel.org> [3.5, 3.6]
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>
arch/arm/include/asm/syscall.h