Subject: Re: [Patch 04/18] include/linux/logfs.h From: David Woodhouse To: Segher Boessenkool In-Reply-To: <18f622d94e9273fe6c93ef091fcec87c@kernel.crashing.org> References: <20070603183845.GA8952@lazybastard.org> <20070603184205.GE8952@lazybastard.org> <200706032342.27252.arnd@arndb.de> <20070604091245.GF14823@lazybastard.org> <1180964303.25232.358.camel@pmac.infradead.org> <18f622d94e9273fe6c93ef091fcec87c@kernel.crashing.org> Content-Type: text/plain Date: Tue, 05 Jun 2007 16:53:55 +0100 Message-Id: <1181058836.16089.23.camel@hades.cambridge.redhat.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Cc: akpm@osdl.org, David Weinehall , Dongjun Shin , Kyle Moffett , linux-mtd@lists.infradead.org, Pavel Machek , Sam Ravnborg , Ulisses Furquim , CaT , Evgeniy Polyakov , Roland Dreier , Arnd Bergmann , =?ISO-8859-1?Q?J=F6rn?= Engel , Jamie Lokier , Pekka Enberg , Jan Engelhardt , Thomas Gleixner , Bill Davidsen , Albert Cahalan , John Stoffel , linux-kernel@vger.kernel.org, Ondrej Zajicek , linux-fsdevel@vger.kernel.org, Willy Tarreau List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, 2007-06-05 at 17:49 +0200, Segher Boessenkool wrote: > > It would be better if GCC had a 'nopadding' attribute which gave us > > what we need without the _extra_ implications about alignment. > > That's impossible; removing the padding from a struct > _will_ make accesses to its members unaligned (think > about arrays of that struct). It _might_ make accesses to _some_ of its members unaligned. That's why I said 'without the __EXTRA__ implications about alignment'. Obviously the lack of padding has its own implications, but we don't necessarily need to assume that the struct may be at arbitrary locations. -- dwmw2