lkml.org 
[lkml]   [2012]   [Jun]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH tip/core/rcu 06/17] rcu: Remove return value from RCU_INIT_POINTER()
    Date
    Paul E. McKenney <paulmck@linux.vnet.ibm.com> wrote:

    > From: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
    >
    > The return value from RCU_INIT_POINTER() is not used, and using it
    > would be quite ugly, for example:
    >
    > q = RCU_INIT_POINTER(global_p, p);
    >
    > To prevent this sort of ugliness from appearing, this commit wraps
    > RCU_INIT_POINTER() in a do-while loop.
    >
    > Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
    > Reviewed-by: Josh Triplett <josh@joshtriplett.org>

    Acked-by: David Howells <dhowells@redhat.com>


    \
     
     \ /
      Last update: 2012-06-22 18:41    [W:0.027 / U:30.432 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site