Skip to content

checkpatch.pl: Add features to help improve U-Boot code

Simon Glass u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6checkpatch.pl: Update to v5.7-rc6scripts/checkpatch.pl+55 -1611 reply
2/6checkpatch.pl: Add a U-Boot option.checkpatch.conf scripts/checkpatch.pl+15 -01 reply
3/6checkpatch.pl: Add a check for tests needed for uclassesscripts/checkpatch.pl+6 -01 reply
4/6checkpatch.pl: Warn if the flattree API is usedscripts/checkpatch.pl+6 -01 reply
5/6checkpatch.pl: Request a test when a new command is addeddoc/README.commands scripts/checkpatch.pl+56 -01 reply
6/6checkpatch.pl: Request if() instead #ifdefscripts/checkpatch.pl+6 -02 replies
6/6checkpatch.pl: Request if() instead #ifdef+0 -03 replies
6/6checkpatch.pl: Request if() instead #ifdef+0 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/6] checkpatch.pl: Add features to help improve U-Boot code

U-Boot mostly follows linux for coding style, but it has some of its own features. These come up again and again in code review. We should try to reduce the load of reviewers.

This series adds a little U-Boot function to the checkpatch script and an option to enable it. Hopefully it is easy enough to maintain this as the script is updated, even if it is not accepted upstream.

Some initial checks are included as examples of what we can do.

Simon Glass (6):
checkpatch.pl: Update to v5.7-rc6
checkpatch.pl: Add a U-Boot option checkpatch.pl: Add a check for tests needed for uclasses checkpatch.pl: Warn if the flattree API is used checkpatch.pl: Request a test when a new command is added checkpatch.pl: Request if() instead #ifdef

 .checkpatch.conf      |   3 +
 doc/README.commands   |  50 +++++++++
 scripts/checkpatch.pl | 252 +++++++++++++++---------------------------
 3 files changed, 144 insertions(+), 161 deletions(-)
Signature · 1 line
2.27.0.rc0.183.gde8f92d652-goog