Re: [PATCH] thread_info: use unsigned long for flags

2016-09-23 Thread Mark Rutland
[Adding Ingo, so this doesn't get lost -- please see the end of the mail] On Fri, Sep 23, 2016 at 11:08:46AM -0700, Andy Lutomirski wrote: > On Fri, Sep 23, 2016 at 10:24 AM, Mark Rutland wrote: > > The generic THREAD_INFO_IN_TASK definition of thread_info::flags is a > > u32, matching x86 prior

Re: [PATCH] thread_info: use unsigned long for flags

2016-09-23 Thread Andy Lutomirski
On Fri, Sep 23, 2016 at 10:24 AM, Mark Rutland wrote: > The generic THREAD_INFO_IN_TASK definition of thread_info::flags is a > u32, matching x86 prior to the introduction of THREAD_INFO_IN_TASK. > > However, common helpers like test_ti_thread_flag() implicitly assume > that thread_info::flags has

[PATCH] thread_info: use unsigned long for flags

2016-09-23 Thread Mark Rutland
The generic THREAD_INFO_IN_TASK definition of thread_info::flags is a u32, matching x86 prior to the introduction of THREAD_INFO_IN_TASK. However, common helpers like test_ti_thread_flag() implicitly assume that thread_info::flags has at least the size and alignment of unsigned long, and relying o