Skip to contentSkip to conversation

checkpatch: do not check missing blank line before builtin_*_driver

PATCH New [email protected] 1 participant 1 message Nov 17, 2017 Checkpatch

lore
Share & tools
lore
#0 lore raw

PATCH 46/94 checkpatch: do not check missing blank line before builtin_*_driver

From: Masahiro Yamada <[email protected]>
Subject: checkpatch: do not check missing blank line before builtin_*_driver

checkpatch.pl does not check missing blank line before module_*_driver. I want it to behave likewise for builtin_*_driver.

---

 scripts/checkpatch.pl |    1 +
 1 file changed, 1 insertion(+)
scripts/checkpatch.pl renamed from scripts/checkpatch.pl~checkpatch-do-not-check-missing-blank-line-before-builtin__driver +1 -0
diff -puN scripts/checkpatch.pl~checkpatch-do-not-check-missing-blank-line-before-builtin__driver scripts/checkpatch.pl
@@ -3105,6 +3105,7 @@ sub process {
 		      $line =~ /^\+[a-z_]*init/ ||
 		      $line =~ /^\+\s*(?:static\s+)?[A-Z_]*ATTR/ ||
 		      $line =~ /^\+\s*DECLARE/ ||
+		      $line =~ /^\+\s*builtin_[\w_]*driver/ ||
 		      $line =~ /^\+\s*__setup/)) {
 			if (CHK("LINE_SPACING",
 				"Please use a blank line after function/struct/union/enum declarations\n" . $hereprev) &&

_