mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] checkpatch: add early_param exception to blank line after struct/function test
@ 2022-02-13  7:03 Joe Perches
  0 siblings, 0 replies; only message in thread
From: Joe Perches @ 2022-02-13  7:03 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Andy Whitcroft, Dwaipayan Ray, Lukas Bulwahn, linux-kernel

Add early_param as another exception to the blank line preferred after
function/struct/union declaration or definition test.

Signed-off-by: Joe Perches <joe@perches.com>
---
 scripts/checkpatch.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 071b3304f5d7c..727d23b934da2 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -3930,7 +3930,7 @@ sub process {
 		if ($prevline =~ /^[\+ ]};?\s*$/ &&
 		    $line =~ /^\+/ &&
 		    !($line =~ /^\+\s*$/ ||
-		      $line =~ /^\+\s*EXPORT_SYMBOL/ ||
+		      $line =~ /^\+\s*(?:EXPORT_SYMBOL|early_param)/ ||
 		      $line =~ /^\+\s*MODULE_/i ||
 		      $line =~ /^\+\s*\#\s*(?:end|elif|else)/ ||
 		      $line =~ /^\+[a-z_]*init/ ||



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-02-13  7:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-13  7:03 [PATCH] checkpatch: add early_param exception to blank line after struct/function test Joe Perches

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®