[PATCH] checkpatch: Add test for positional misuse of section specifiers like __initdata

Joe Perches joe at perches.com
Sat Aug 31 12:04:09 EDT 2013


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




More information about the linux-arm-kernel mailing list