[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20091027.175940.209239217.davem@davemloft.net>
Date: Tue, 27 Oct 2009 17:59:40 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: mingo@...e.hu
Cc: lethal@...ux-sh.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] perf tools: Kill off -Wcast-align
From: Ingo Molnar <mingo@...e.hu>
Date: Tue, 27 Oct 2009 14:50:25 +0100
> Generally if you run into such issues in Sparc let us know so we can fix
> it :-)
Sorry, I wanted to do a thorough analysis to make sure I understood
why it was warning, but I was too busy to do so.
In the end the issue is the kernel list.h macros like list_entry(),
and it would similarly trigger for things like container_of().
If you have a pointer to a structure with objects other than "long
double" then cast it to a pointer to a structure that does have a
"long double" in it, this increases the alignment of the type (from 8
to 16 bytes on sparc 32-bit).
--
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