public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Expanding checkpatch for non-linux (specifically U-Boot) use
@ 2011-04-25  5:36 Graeme Russ
  2011-04-25  6:02 ` Joe Perches
  0 siblings, 1 reply; 11+ messages in thread
From: Graeme Russ @ 2011-04-25  5:36 UTC (permalink / raw)
  To: LKML; +Cc: U-Boot Users

Hi all,

There has been a bit of discussion lately on the U-Boot mailing list
regarding the use of checkpatch for U-Boot patches (see
http://lists.denx.de/pipermail/u-boot/2011-April/090954.html)

U-Boot uses the Linux coding style and checkpatch is therefore a very good
tool for us to use to check style compliance. However, checkpatch has a few
Linux specific checks which throw up false warnings for U-Boot patches like:

WARNING: consider using kstrto* in preference to simple_strto*
WARNING: Use #include <linux/$file> instead of <asm/$file>

Also, checkpatch seems to be checking not only patched lines, but context
lines as well. There is a policy for U-Boot patches to not intermix
whitespace / code cleanup changes and functional changes in in the same
patch. So to achieve zero warnings and errors, the submitter is forced to
create an additional code-cleanup patch in addition to the functionality
patch. The code cleanup can end up being significantly larger than the
functionality change which discourages casual submitters.

So I have a pretty simple question to ask of LKML - Will checkpatch patches
to create a 'U-Boot' command-line option to explicitly filter out Linux
specific warnings and errors ever be accepted into checkpatch, or will we
be required to create and maintain a U-Boot specific version?

P.S. If you could please keep the U-Boot mailing list Cc'd, that would be
appreciated

Regards,

Graeme






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

end of thread, other threads:[~2011-08-24 21:33 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-25  5:36 Expanding checkpatch for non-linux (specifically U-Boot) use Graeme Russ
2011-04-25  6:02 ` Joe Perches
2011-04-25  6:22   ` Graeme Russ
2011-04-25  6:32     ` Joe Perches
2011-04-26  0:43       ` [RFC PATCH] checkpatch.pl: Add ability to ignore various messages Joe Perches
2011-06-09 19:26         ` Joe Perches
2011-06-09 19:40           ` [U-Boot] " Mike Frysinger
2011-07-27 21:17         ` Wolfgang Denk
2011-07-27 22:10           ` Joe Perches
2011-08-24 21:25             ` Wolfgang Denk
2011-08-24 21:33               ` Joe Perches

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox