Return-path: Received: from moutng.kundenserver.de ([212.227.126.171]:51554 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755200Ab1DAJO4 (ORCPT ); Fri, 1 Apr 2011 05:14:56 -0400 From: Arnd Bergmann To: Jiri Slaby Subject: Re: [PATCH 1/1] drivers: brcmaxi: provide amba axi functionality in separate module Date: Fri, 1 Apr 2011 11:14:37 +0200 Cc: Russell King , Arend van Spriel , linux-kernel@vger.kernel.org, akpm@linux-foundation.org, devel@linuxdriverproject.org, gregkh@suse.de, linux-wireless@vger.kernel.org, Jiri Slaby References: <1301391619-4499-1-git-send-email-arend@broadcom.com> <20110331141424.GD19540@flint.arm.linux.org.uk> <4D94A781.6060904@suse.cz> In-Reply-To: <4D94A781.6060904@suse.cz> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Message-Id: <201104011114.37940.arnd@arndb.de> Sender: linux-wireless-owner@vger.kernel.org List-ID: On Thursday 31 March 2011, Jiri Slaby wrote: > I don't see why it couldn't like without the packed attribute. (The > manual says packed attribute for a struct is equivalent to specifying > packed to each member of that struct. It doesn't say anything about the > structure alignment itself.) To give some more background, any variable that is marked packed is assumed to be potentially unaligned (byte aligned). If a struct contains only members with byte alignment, it too is byte aligned. Arnd