[PATCH 1/1] [RFCv2] arm: add half-word __xchg
Russell King - ARM Linux
linux at arm.linux.org.uk
Sat Mar 27 20:18:20 EDT 2010
On Sun, Mar 28, 2010 at 12:14:29AM +0000, Jamie Lokier wrote:
> But seeing as this is for ARM only at present, I'd just change the
> types to u32 and be done with it. It does seem like a good thing to
> go to asm-generic eventually though.
Which is why having it use __alignof__ now would be a good idea - it
avoids someone blindly copying the code and then there being a subtle
bug in it.
I was wondering if a generic PTR_ALIGN(type, ptr) macro would be a
good idea too.
More information about the linux-arm-kernel
mailing list