[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-id: <alpine.LFD.2.00.1106201653450.2142@xanadu.home>
Date: Mon, 20 Jun 2011 18:36:18 -0400 (EDT)
From: Nicolas Pitre <nico@...xnic.net>
To: Alan Stern <stern@...land.harvard.edu>
Cc: Arnd Bergmann <arnd@...db.de>,
linux-arm-kernel@...ts.infradead.org,
Alexander Holler <holler@...oftware.de>,
linux-usb@...r.kernel.org, gregkh@...e.de,
lkml <linux-kernel@...r.kernel.org>, Rabin Vincent <rabin@....in>
Subject: Re: [PATCH] USB: ehci: use packed,aligned(4) instead of removing the
packed attribute
On Mon, 20 Jun 2011, Alan Stern wrote:
> On Mon, 20 Jun 2011, Nicolas Pitre wrote:
>
> > > 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists