lkml.org 
[lkml]   [2013]   [Dec]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Use __kernel_long_t in struct mq_attr
On 12/26/2013 09:59 AM, H.J. Lu wrote:
>
>> but it would seem to give the wrong types when __BITS_PER_LONG in
>> userspace is 32.
>>
>
> For x32, __BITS_PER_LONG is 64, not 32. If __BITS_PER_LONG
> is 32, my patch doesn't change anything. If it works before,
> it still works. If it is broken before, it remains broken.
>
> I prefer my first patch, which is less clutter. But I can't guarantee
> it is correct for all x3-like ABIs. My second patch has more
> clutter, but it has no impact on other ABIs.
>

It's rather simple to prove, which is to consider the generic definition
of __kernel_[u]long_t.

-hpa



\
 
 \ /
  Last update: 2013-12-26 19:21    [W:0.032 / U:2.448 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site