Skip to contentSkip to conversation

checkpatch: Fix missing error reporting using --mailback

PATCH New Andreas Kemnade 1 participant 1 message Nov 24 Checkpatch

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 checkpatch: Fix missing error reporting using --mailback

b4 uses --mailback, E.g. missing Sob tags get unnoticed in b4 prep --check. See https://lore.kernel.org/all/[email protected]/
Do check for that flag later, after the checks for Sob, to have it reported and avoid churn.

---
 scripts/checkpatch.pl | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
scripts/checkpatch.pl +6 -6
index b8b64f7201915..5ea03013a6c4d 100755
@@ -7867,12 +7867,6 @@ sub process {
 		exit(0);
 	}
 
-	# In mailback mode only produce a report in the negative, for
-	# things that appear to be patches.
-	if ($mailback && ($clean == 1 || !$is_patch)) {
-		exit(0);
-	}
-
 	# This is not a patch, and we are in 'no-patch' mode so
 	# just keep quiet.
 	if (!$chk_patch && !$is_patch) {
@@ -7923,6 +7917,12 @@ sub process {
 		}
 	}
 
+	# In mailback mode only produce a report in the negative, for
+	# things that appear to be patches.
+	if ($mailback && ($clean == 1 || !$is_patch)) {
+		exit(0);
+	}
+
 	print report_dump();
 	if ($summary && !($clean == 1 && $quiet == 1)) {
 		print "$filename " if ($summary_file);
Signature · 1 line
2.47.3