[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140712230828.GA15827@kroah.com>
Date: Sat, 12 Jul 2014 16:08:28 -0700
From: Greg KH <gregkh@...uxfoundation.org>
To: Joe Perches <joe@...ches.com>
Cc: LKML <linux-kernel@...r.kernel.org>
Subject: checkpatch.pl misses list_for_each_entry() coding style issues
Hi Joe,
The following function:
$ cat foo.c
static int foo_init(void)
{
list_for_each_entry(foo, &foo, list)
{
do_something_foo(foo);
}
return 0;
}
Will not be caught by checkpatch:
$ ./scripts/checkpatch.pl --file foo.c
total: 0 errors, 0 warnings, 11 lines checked
foo.c has no obvious style problems and is ready for submission.
Any way to fix that up?
thanks,
greg k-h
--
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