[Xen-devel] [PATCH] xen/block: Correctly define structures in public headers on ARM32 and ARM64

One Thousand Gnomes gnomes at lxorguk.ukuu.org.uk
Tue Dec 3 10:55:47 EST 2013


> Just a random thought but what about using the CONFIG_$ARCH to define a
> more semantic name, like HAVE_4_BYTE_ALIGNED_QUAD_WORDS, or whichever
> terminology for an 8-byte type is appropriate in the context.
> 
> Maybe Linux even already has such a #define?

It doesn't need one. It's written in GNU C so we have __alignof__.

See

http://gcc.gnu.org/onlinedocs/gcc/Alignment.html




More information about the linux-arm-kernel mailing list