All of lore.kernel.org
 help / color / mirror / Atom feed
* + checkpatch-add-early_param-exception-to-blank-line-after-struct-function-test.patch added to -mm tree
@ 2022-02-14 23:12 Andrew Morton
  0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2022-02-14 23:12 UTC (permalink / raw)
  To: mm-commits, lukas.bulwahn, dwaipayanray1, joe, akpm


The patch titled
     Subject: checkpatch: add early_param exception to blank line after struct/function test
has been added to the -mm tree.  Its filename is
     checkpatch-add-early_param-exception-to-blank-line-after-struct-function-test.patch

This patch should soon appear at
    https://ozlabs.org/~akpm/mmots/broken-out/checkpatch-add-early_param-exception-to-blank-line-after-struct-function-test.patch
and later at
    https://ozlabs.org/~akpm/mmotm/broken-out/checkpatch-add-early_param-exception-to-blank-line-after-struct-function-test.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Joe Perches <joe@perches.com>
Subject: checkpatch: add early_param exception to blank line after struct/function test

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

Link: https://lkml.kernel.org/r/3bd6ada59f411a7685d7e64eeb670540d4bfdcde.camel@perches.com
Signed-off-by: Joe Perches <joe@perches.com>
Cc: Dwaipayan Ray <dwaipayanray1@gmail.com>
Cc: Lukas Bulwahn <lukas.bulwahn@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 scripts/checkpatch.pl |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/scripts/checkpatch.pl~checkpatch-add-early_param-exception-to-blank-line-after-struct-function-test
+++ a/scripts/checkpatch.pl
@@ -3926,7 +3926,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/ ||
_

Patches currently in -mm which might be from joe@perches.com are

checkpatch-prefer-module_licensegpl-over-module_licensegpl-v2.patch
checkpatch-add-fix-option-for-some-trailing_statements.patch
checkpatch-add-early_param-exception-to-blank-line-after-struct-function-test.patch


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

only message in thread, other threads:[~2022-02-14 23:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-14 23:12 + checkpatch-add-early_param-exception-to-blank-line-after-struct-function-test.patch added to -mm tree Andrew Morton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.