Skip to contentSkip to conversation

checkpatch-warn-only-on-space-before-semicolon-at-end-of-line.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jan 24, 2014 Checkpatch

lore
Share & tools
lore
#0 lore raw

Subject: [merged] checkpatch-warn-only-on-space-before-semicolon-at-end-of-line.patch removed from -mm tree
To: [email protected],[email protected],[email protected]
From: [email protected]
Date: Fri, 24 Jan 2014 11:01:45 -0800

The patch titled
Subject: checkpatch: warn only on "space before semicolon" at end of line
has been removed from the -mm tree. Its filename was
checkpatch-warn-only-on-space-before-semicolon-at-end-of-line.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Joe Perches <[email protected]>
Subject: checkpatch: warn only on "space before semicolon" at end of line

The "space before a non-naked semicolon" test has unwanted output when used in "for ( ;; )" loops.

Make the test work only on end-of-line statement
termination semicolons.

---

 scripts/checkpatch.pl |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/checkpatch.pl renamed from scripts/checkpatch.pl~checkpatch-warn-only-on-space-before-semicolon-at-end-of-line +1 -1
diff -puN scripts/checkpatch.pl~checkpatch-warn-only-on-space-before-semicolon-at-end-of-line scripts/checkpatch.pl
@@ -3121,7 +3121,7 @@ sub process {
 		}
 
 # check for whitespace before a non-naked semicolon
-		if ($line =~ /^\+.*\S\s+;/) {
+		if ($line =~ /^\+.*\S\s+;\s*$/) {
 			if (WARN("SPACING",
 				 "space prohibited before semicolon\n" . $herecurr) &&
 			    $fix) {

_

Patches currently in -mm which might be from [email protected] are

origin.patch lib-genallocc-add-check-gen_pool_dma_alloc-if-dma-pointer-is-not-null.patch ipc-whitespace-cleanup.patch
linux-next.patch
softirq-use-ffs-in-__do_softirq.patch softirq-convert-printks-to-pr_level.patch softirq-use-const-char-const-for-softirq_to_name-whitespace-neatening.patch checkpatchpl-check-for-function-declarations-without-arguments.patch