[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <530F707A.8060603@imgtec.com>
Date: Thu, 27 Feb 2014 17:06:02 +0000
From: James Hogan <james.hogan@...tec.com>
To: "H. Peter Anvin" <hpa@...or.com>
CC: Dan Carpenter <dan.carpenter@...cle.com>,
Theodore Ts'o <tytso@....edu>, Borislav Petkov <bp@...en8.de>,
Joe Perches <joe@...ches.com>, Ben Pfaff <blp@...ira.com>,
Christopher Li <sparse@...isli.org>,
Josh Triplett <josh@...htriplett.org>,
<linux-sparse@...r.kernel.org>,
"Linux Kernel Mailing List" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH V2] sparse: Allow override of sizeof(bool) warning
On 27/02/14 16:52, H. Peter Anvin wrote:
> On 02/27/2014 08:10 AM, Dan Carpenter wrote:
>>
>> That last assumption has to change for the Meta architecture.
>>
>> https://lwn.net/Articles/522188/
>>
>> On meta, the structs and unions are padded to 4 bytes unless they are
>> explicitly marked as __packed.
>>
>
> One have to wonder how likely they are to have that not continually break...
Well it's only when it deals with stored/portable data formats that it's
an issue, and in those cases some amount of care over packing has
usually already been taken. It most often causes problems when one small
struct/union containing only chars or shorts is nested inside another
struct which is marked as packed (on the unfortunately mistaken
assumption that the inner struct cannot have padding at the end so
doesn't need packing itself).
But yeh, it is a PITA.
Cheers
James
--
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