[PATCH 1/2][v2] Integrated Flash Controller support

Scott Wood scottwood at freescale.com
Tue Jan 3 04:31:27 EST 2012

On 12/28/2011 07:30 AM, dmitry pervushin wrote:
> If you're using memory-mapped structure, shouldn't it be announced with
> __attribute__(packed) ?

Why?  We know this isn't going to be compiled on some strange ABI where
a struct with nothing but u32 gets padding.  __attribute__((packed))
also tells GCC the struct itself could be unaligned which is not true.


More information about the Linuxppc-dev mailing list