[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20100111144204.f52568d6.akpm@linux-foundation.org>
Date: Mon, 11 Jan 2010 14:42:04 -0800
From: Andrew Morton <akpm@...ux-foundation.org>
To: Stefani Seibold <stefani@...bold.net>
Cc: linux-kernel <linux-kernel@...r.kernel.org>, apw@...onical.com,
jschopp@...tin.ibm.com, davej@...hat.com
Subject: Re: [PATCH] checkpatch.pl: add union and struct to the exceptions
list
On Wed, 06 Jan 2010 17:46:00 +0100
Stefani Seibold <stefani@...bold.net> wrote:
> This patch add the struct and union keywords to the exceptions list of
> the checkpatch.pl script, to prevent error message "Macros with multiple
> statements should be enclosed in a do - while loop". Otherwise it is not
> possible to build a struct or union with a macro.
>
> Signed-off-by: Stefani Seibold <stefani@...bold.net>
> ---
> checkpatch.pl | 2 ++
> 1 file changed, 2 insertions(+)
>
> --- linux-2.6.33-rc2.orig/scripts/checkpatch.pl 2009-12-03 04:51:21.000000000 +0100
> +++ linux-2.6.33-rc2.new/scripts/checkpatch.pl 2010-01-06 17:35:29.747634447 +0100
> @@ -2348,6 +2348,8 @@ sub process {
> DECLARE_PER_CPU|
> DEFINE_PER_CPU|
> __typeof__\(|
> + union|
> + struct|
> \.$Ident\s*=\s*|
> ^\"|\"$
> }x;
hm. Perhaps it would help if you could provide a snippet of code which
triggers the incorrect warning?
--
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