[ltt-dev] liburcu: likely and unlikely macro collision

Stephen Hemminger stephen.hemminger at vyatta.com
Tue Nov 1 19:05:04 EDT 2011


> likely()/unlikely() seems to be amongst the last macros that urcu
> defines that don't have urcu-specific prefixes. Thoughts on whether
> we
> should add a prefix such as caa_likely() and caa_unlikely() are
> welcome.

In our usage of liburcu, I had to do macro whacking to workaround
this conflict.  Even wrapping the definition in urcu with '#ifndef likely'
would help.




More information about the lttng-dev mailing list