Re: [cpuops cmpxchg double V2 1/4] Generic support forthis_cpu_cmpxchg_double

From: Christoph Lameter
Date: Fri Jan 21 2011 - 13:42:42 EST


On Fri, 21 Jan 2011, Mathieu Desnoyers wrote:

> "if the pointer passed is constant" -> if you use the actual type of percpu_dd
> to check the alignment, then you can do an alignment check at compile-time even
> for a non-const parameter. The requirement imposed on typing will take care to
> make sure that even a non-const pointer will have the proper alignment.

True that would be a benefit if we used something like percpu_dd. If
somehow we can marry that to a parameter list that only includes single
word entities then we would have the best of both.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/