lkml.org 
[lkml]   [2014]   [Sep]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v8 08/10] x86, mpx: add prctl commands PR_MPX_REGISTER, PR_MPX_UNREGISTER
    On 09/11/2014 01:46 AM, Qiaowei Ren wrote:
    > +
    > + return (void __user *)(unsigned long)(xsave_buf->bndcsr.cfg_reg_u &
    > + MPX_BNDCFG_ADDR_MASK);
    > +}

    I don't think casting a u64 to a ulong, then to a pointer is useful.
    Just take the '(unsigned long)' out.


    \
     
     \ /
      Last update: 2014-09-11 17:41    [W:4.071 / U:0.088 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site