Re: [PATCH] checkpatch: Add test for positional misuse of sectionspecifiers like __initdata

From: Joe Perches
Date: Sat Aug 31 2013 - 12:04:20 EST


On Sat, 2013-08-31 at 16:31 +0200, Andi Kleen wrote:
> > A similar patch was suggested by Andi Kleen
> > https://lkml.org/lkml/2013/8/5/648
>
> My patch checked for const <-> initdata / non const initconst mistakes.
>
> I don't think your patch does that?

Hi Andi.

No it doesn't.

This patch is just warning when using
struct __initdata foo bar;
instead of
struct foo bar __initdata;

I'll get around to adding tests for your
cases soonish.

cheers, Joe

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/