lkml.org 
[lkml]   [2010]   [Jun]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH 10/13] jump label v9: convert jump label to use a key
    From
    Date
    On Wed, 2010-06-09 at 17:39 -0400, Jason Baron wrote:
    > -static inline int enable_jump_label(const char *name)
    > -{
    > - return 0;
    > -}
    > -
    > -static inline int disable_jump_label(const char *name)
    > -{
    > - return 0;
    > -}
    > +#define enable_jump_label(key)
    > +#define disable_jump_label(key)

    I would expect enable_jump_label() to look something like:

    #define enable_jump_label(cond_var) \
    do { \
    *(cond_var) = 1; \
    } while (0)

    That way the HAVE_JUMP_LABEL and !HAVE_JUMP_LABEL code has similar
    effects.


    \
     
     \ /
      Last update: 2010-06-10 14:47    [W:0.021 / U:179.848 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site