[lkml]   [2008]   [Jul]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] byteorder: force in-place endian conversion to always evaluate args
    Harvey Harrison wrote:
    > David Miller reported breakage in ide when the in-place byteorder helpers
    > were used as the macros do not always evaluate their args which led to
    > an infinite loop.
    > Just make them functions to ensure they always do so.

    > -#define __cpu_to_be64s(x) do {} while (0)

    For what it's worth, the way to write a macro like this:

    #define __cpu_to_be64s(x) ((void)(x))


     \ /
      Last update: 2008-07-25 20:17    [W:0.027 / U:6.508 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site