Skip to content

CHECKPATCH: Add warning for single else statement.

Don Slutz qemu-devel 2 versions – Applied

Status from this message: Thanks, applied all.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 3 repliesApplied
  2. v11 patch 1 replySuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/4CHECKPATCH: Add --debug adv_dcsscripts/checkpatch.pl+3 -00 replies
2/4CHECKPATCH: Add --debug adv_checkingscripts/checkpatch.pl+3 -10 replies
3/4CHECKPATCH: Add --debug adv_apwscripts/checkpatch.pl+32 -190 replies
4/4CHECKPATCH: Add warning for single else statement.scripts/checkpatch.pl+10 -60 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/4] CHECKPATCH: Add warning for single else statement.

Also add more debug options to find this issue. They were not listed in the help because the are not simple to understand the output of.

Using:

  rm zz;
  for k in 0 1 2 3; do
   for i in 0 1 2 3 4 5 6 7 8 9; do
    for j in 0 1 2 3 4 5 6 7 8 9; do
     echo $k$i$j;
     git show HEAD~$k$i$j >/tmp/a;
     head -1 /tmp/a >>zz;
     ./scripts/checkpatch.pl --root=. /tmp/a >>zz;
    done;
   done;
  done

With both the new and old versions that the same warnigns and errors were reported.

Don Slutz (4):
CHECKPATCH: Add --debug adv_dcs
CHECKPATCH: Add --debug adv_checking
CHECKPATCH: Add --debug adv_apw
CHECKPATCH: Add warning for single else statement.

 scripts/checkpatch.pl |   68 ++++++++++++++++++++++++++++++++----------------
 1 files changed, 45 insertions(+), 23 deletions(-)