[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-devel] [PATCH] xen/block: Correctly define structures in public headers on ARM32 and ARM64
- To: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
- From: One Thousand Gnomes <gnomes@xxxxxxxxxxxxxxxxxxx>
- Date: Tue, 3 Dec 2013 15:55:47 +0000
- Cc: Julien Grall <julien.grall@xxxxxxxxxx>, Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>, patches@xxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, David Vrabel <david.vrabel@xxxxxxxxxx>, Jan Beulich <JBeulich@xxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx, Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx>, linux-arm-kernel@xxxxxxxxxxxxxxxxxxx, Roger Pau Monne <roger.pau@xxxxxxxxxx>
- Delivery-date: Tue, 03 Dec 2013 16:08:04 +0000
- List-id: Xen developer discussion <xen-devel.lists.xen.org>
> 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
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|