[PATCH] USB: ehci: use packed, aligned(4) instead of removing the packed attribute
From: nico@fluxnic.net (Nicolas Pitre)
Date: 2011-06-20 22:36:20
Also in:
lkml
From: nico@fluxnic.net (Nicolas Pitre)
Date: 2011-06-20 22:36:20
Also in:
lkml
On Mon, 20 Jun 2011, Alan Stern wrote:
On Mon, 20 Jun 2011, Nicolas Pitre wrote:quoted
quoted
As far as I can tell, the other structures in ehci.h have ((aligned(32)) simply in order to save space, since there can be large numbers of these structures allocated.How can increasing the alignment to 32 bytes save space?No, no -- the alignment is _decreased_ to 32 bits. Without the attribute the alignment would have been 64 bits.
The aligned attribute requires a byte value not a bit value. Maybe what you meant is ((aligned(4)) ? Nicolas