[lkml]   [2007]   [May]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] ubi: kill homegrown endian macros
    > Ahem...  So what does
    > x |= y;
    > turns into with that approach?

    BTW, you can simply typedef __be16 ubi16_t; etc. and define conversion
    functions as cpu_to_ubi16(x) being (__force ubi16_t)cpu_to_be16(x), etc.

    sparse will do all checks just fine, you still have bitwise operations
    (might or might be not relevant in your case) and for gcc it simply
    becomes __be16, etc - i.e. an integer type.
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2007-05-17 22:57    [W:0.017 / U:37.332 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site