Re: [PATCH] ARM: uaccess: Add missing include for set_thread_flag

2017-09-20 Thread Jonathan Liu
Hi Thomas, On 21 September 2017 at 02:31, Thomas Garnier wrote: > On Tue, Sep 19, 2017 at 2:35 PM, Jonathan Liu wrote: >> >> Hi Thomas, >> >> The top of the C source file I am compiling has: >> #include >> #include >> >> Tracing through the asm/uaccess.h include I see >> asm/uaccess.h -> asm/d

Re: [PATCH] ARM: uaccess: Add missing include for set_thread_flag

2017-09-20 Thread Thomas Garnier
On Tue, Sep 19, 2017 at 2:35 PM, Jonathan Liu wrote: > > Hi Thomas, > > The top of the C source file I am compiling has: > #include > #include > > Tracing through the asm/uaccess.h include I see > asm/uaccess.h -> asm/domain.h -> asm/thread_info.h > > but set_thread_info is defined in linux/thre

Re: [PATCH] ARM: uaccess: Add missing include for set_thread_flag

2017-09-19 Thread Jonathan Liu
Hi Thomas, The top of the C source file I am compiling has: #include #include Tracing through the asm/uaccess.h include I see asm/uaccess.h -> asm/domain.h -> asm/thread_info.h but set_thread_info is defined in linux/thread_info.h not asm/thread_info.h (see http://elixir.free-electrons.com/lin

Re: [PATCH] ARM: uaccess: Add missing include for set_thread_flag

2017-09-19 Thread Thomas Garnier
On Tue, Sep 19, 2017 at 4:50 AM, Jonathan Liu wrote: > Fixes "implicit declaration of function" compile error for out-of-tree > kernel modules including asm/uaccess.h. I failed to reproduce this issue by creating an out of tree module with a separate file (with only uaccess.h). Are you using a sp

[PATCH] ARM: uaccess: Add missing include for set_thread_flag

2017-09-19 Thread Jonathan Liu
Fixes "implicit declaration of function" compile error for out-of-tree kernel modules including asm/uaccess.h. Fixes: 73ac5d6a2b6a ("arm/syscalls: Check address limit on user-mode return") Signed-off-by: Jonathan Liu --- arch/arm/include/asm/uaccess.h | 1 + 1 file changed, 1 insertion(+) diff