[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20070913113547.GC31940@linux-mips.org>
Date: Thu, 13 Sep 2007 12:35:47 +0100
From: Ralf Baechle <ralf@...ux-mips.org>
To: Thiemo Seufer <ths@...workno.de>
Cc: Matteo Croce <technoboy85@...il.com>, linux-mips@...ux-mips.org,
Eugene Konev <ejka@...i.kspu.ru>, netdev@...r.kernel.org,
davem@...emloft.net, kuznet@....inr.ac.ru, pekkas@...core.fi,
jmorris@...ei.org, yoshfuji@...ux-ipv6.org, kaber@...eworks.de,
openwrt-devel@...ts.openwrt.org,
Andrew Morton <akpm@...ux-foundation.org>,
Jeff Garzik <jgarzik@...ox.com>
Subject: Re: [PATCH][MIPS][7/7] AR7: ethernet
On Thu, Sep 13, 2007 at 02:42:46AM +0100, Thiemo Seufer wrote:
> > All struct members here are sized such that there is no padding needed, so
> > the packed attribute doesn't buy you anything - unless of course the
> > entire structure is missaligned but I don't see how that would be possible
> > in this driver so the __attribute__ ((packed)) should go - it result in
> > somwhat larger and slower code.
>
> FWIW, a modern gcc will warn about such superfluous packed attributes,
> that's another reason to remove those.
I doubt it will in this case; the packed structure is dereferenced by a
pointer so no way for gcc to know the alignment.
Ralf
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists