From: Russell King - ARM Linux <linux@arm.linux.org.uk>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Helge Deller <deller@gmx.de>,
jt@hpl.hp.com, rjw@sisk.pl, linux-wireless@vger.kernel.org,
linux-arm-kernel@lists.arm.linux.org.uk, linville@tuxdriver.com
Subject: Re: [PATCH] WAVELAN - compile-time check for struct sizes
Date: Wed, 6 Feb 2008 21:47:47 +0000 [thread overview]
Message-ID: <20080206214747.GG32245@flint.arm.linux.org.uk> (raw)
In-Reply-To: <20080206130448.564f18bb.akpm@linux-foundation.org>
On Wed, Feb 06, 2008 at 01:04:48PM -0800, Andrew Morton wrote:
> On Wed, 6 Feb 2008 21:50:23 +0100
> Helge Deller <deller@gmx.de> wrote:
>
> > > > + /* compile-time check the sizes of structures */
> > > > + BUILD_BUG_ON(sizeof(psa_t) != PSA_SIZE);
> > > > + BUILD_BUG_ON(sizeof(mmw_t) != MMW_SIZE);
> > >
> > > This assertion is now triggering with arm allmodconfig.
> > >
> > > Rafael, please track this as a post-2.6.24 regression.
> >
> > Hello Andrew,
> >
> > with which arm platform did you found this assertion to trigger ?
> > I tried a few (e.g. ARM-poodle and CONFIG_ARCH_SA1100 w/ISA) but didn't saw it breaking.
> > Maybe you could send me you .config file ?
> >
>
> allmodconfig
>
> >
> > PS: I tried Linus' current git tree which now includes my patch above as well.
>
> The assertion triggers with current mainline. I'm using gcc-3.4.5, from
> http://userweb.kernel.org/~akpm/cross-compilers/
I assume that it's the second BUILD_BUG_ON() which is triggering?
Given that:
#define MMW_SIZE 37
is not a multiple of sizeof(unsigned long) this is hardly surprising.
If structures are used to define a layout of something and must not
contain compiler padding, it must be packed. Given these structures
contain just unsigned char, there's no concerns about >8bit loads
becoming less efficient.
next prev parent reply other threads:[~2008-02-06 21:54 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-13 14:16 [PATCH] WAVELAN - compile-time check for struct sizes Helge Deller
2008-02-03 6:45 ` Andrew Morton
2008-02-06 20:50 ` Helge Deller
2008-02-06 21:04 ` Andrew Morton
2008-02-06 21:47 ` Russell King - ARM Linux [this message]
2008-02-06 21:59 ` Andrew Morton
2008-02-07 15:51 ` John W. Linville
2008-02-07 16:06 ` Russell King - ARM Linux
2008-02-07 18:49 ` Andrew Morton
2008-02-07 19:08 ` John W. Linville
2008-02-07 19:50 ` Russell King - ARM Linux
2008-02-07 20:02 ` Andrew Morton
2008-02-07 20:46 ` John W. Linville
2008-02-07 21:27 ` Andrew Morton
2008-02-13 12:17 ` Rafael J. Wysocki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080206214747.GG32245@flint.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--cc=akpm@linux-foundation.org \
--cc=deller@gmx.de \
--cc=jt@hpl.hp.com \
--cc=linux-arm-kernel@lists.arm.linux.org.uk \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=rjw@sisk.pl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.