[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4D948B1C.7080806@suse.cz>
Date: Thu, 31 Mar 2011 16:09:32 +0200
From: Jiri Slaby <jslaby@...e.cz>
To: Russell King <rmk@....linux.org.uk>
CC: Arnd Bergmann <arnd@...db.de>,
Arend van Spriel <arend@...adcom.com>,
linux-kernel@...r.kernel.org, akpm@...ux-foundation.org,
devel@...uxdriverproject.org, gregkh@...e.de,
linux-wireless@...r.kernel.org, Jiri Slaby <jirislaby@...il.com>
Subject: Re: [PATCH 1/1] drivers: brcmaxi: provide amba axi functionality
in separate module
On 03/31/2011 03:51 PM, Russell King wrote:
> On Thu, Mar 31, 2011 at 03:48:20PM +0200, Jiri Slaby wrote:
>> How it can? Packed only tells the compiler to have one byte alignment
>> steps. And it should not matter here as all the members are 32-bit long.
>
> It also tells the compiler that it may be misaligned, so to avoid
> alignment faults it will use byte loads/stores.
No, it should not (if offsetof % sizeof == 0). Otherwise it's a bug in
the compiler.
Am I missing something?
thanks,
--
js
suse labs
--
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