[RFC PATCH] arm: asm/cmpxchg.h: Add support half-word xchg()

Pranith Kumar bobby.prani at gmail.com
Wed Feb 25 09:34:35 PST 2015


On Wed, Feb 25, 2015 at 12:14 PM, Russell King - ARM Linux
<linux at arm.linux.org.uk> wrote:
> Actually, I think we ought to get rid of __bad_xchg() so that cases
> like this cause a link error instead of a runtime error, just like we
> do in other cases as well.
>
> That's something that goes back ages (it used to be called something
> like invalidptr in 2.0 kernels...)

That sounds like a good idea. I will cook up a patch doing this.

Thanks!
-- 
Pranith



More information about the linux-arm-kernel mailing list