All of lore.kernel.org
 help / color / mirror / Atom feed
* checkpatch.pl misses list_for_each_entry() coding style issues
@ 2014-07-12 23:08 Greg KH
  2014-07-13  3:10 ` Joe Perches
  2014-07-13  5:33 ` [PATCH] checkpatch: Add for_each tests to indentation and brace tests Joe Perches
  0 siblings, 2 replies; 5+ messages in thread
From: Greg KH @ 2014-07-12 23:08 UTC (permalink / raw)
  To: Joe Perches; +Cc: LKML

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-07-14  8:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-12 23:08 checkpatch.pl misses list_for_each_entry() coding style issues Greg KH
2014-07-13  3:10 ` Joe Perches
2014-07-13  5:33 ` [PATCH] checkpatch: Add for_each tests to indentation and brace tests Joe Perches
2014-07-14  8:13   ` Andy Whitcroft
2014-07-14  8:18     ` Joe Perches

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.