On 9/2/07, David Newall [off-list ref] wrote:
Denis Cheng wrote
quoted
+ order = get_bitmask_order(min(max, (unsigned long)UINT_MAX)) - 1;
Why doesn't this clash with the max define, also in linux/kernel.h?
They indeed don't clash,
the cpp included by gcc is intelligent enough, it know the
function-style definition of max in kernel.h, that's different from
the auto variable max here, so they don't clash with each other,
But I think the variable name "max" here is ambiguous, I changed it to
"limit", see my following patch [PATCH 2/3].
--
Denis Cheng