* + checkpatch-kconfig-add-missing-types-to-regex.patch added to -mm tree
@ 2021-01-04 21:12 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2021-01-04 21:12 UTC (permalink / raw)
To: joe, johannes.czekay, mm-commits, nicolai.fischer
The patch titled
Subject: checkpatch: kconfig: add missing types to regex
has been added to the -mm tree. Its filename is
checkpatch-kconfig-add-missing-types-to-regex.patch
This patch should soon appear at
https://ozlabs.org/~akpm/mmots/broken-out/checkpatch-kconfig-add-missing-types-to-regex.patch
and later at
https://ozlabs.org/~akpm/mmotm/broken-out/checkpatch-kconfig-add-missing-types-to-regex.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: Nicolai Fischer <nicolai.fischer@fau.de>
Subject: checkpatch: kconfig: add missing types to regex
Kconfig parsing does not recognise all type attributes.
This adds the missing 'int', 'string' and 'hex' types.
Link: https://lkml.kernel.org/r/20210103075015.23946-3-nicolai.fischer@fau.de
Co-developed-by: Johannes Czekay <johannes.czekay@fau.de>
Signed-off-by: Johannes Czekay <johannes.czekay@fau.de>
Signed-off-by: Nicolai Fischer <nicolai.fischer@fau.de>
Cc: Joe Perches <joe@perches.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-kconfig-add-missing-types-to-regex
+++ a/scripts/checkpatch.pl
@@ -3321,7 +3321,7 @@ sub process {
next if ($f =~ /^-/);
last if (!$file && $f =~ /^\@\@/);
- if ($lines[$ln - 1] =~ /^\+\s*(?:bool|tristate|prompt)\s*["']/) {
+ if ($lines[$ln - 1] =~ /^\+\s*(?:bool|tristate|int|hex|string|prompt)\s*(?:["'].*)?$/) {
$is_start = 1;
} elsif ($lines[$ln - 1] =~ /^\+\s*help$/) {
$length = -1;
_
Patches currently in -mm which might be from nicolai.fischer@fau.de are
checkpatch-kconfig-replace-help-with-help.patch
checkpatch-kconfig-add-missing-types-to-regex.patch
checkpatch-kconfig-enforce-help-text-indentation.patch
checkpatch-kconfig-clarify-warning-for-paragraph-length.patch
checkpatch-kconfig-enforce-block-indentation.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-01-04 21:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-04 21:12 + checkpatch-kconfig-add-missing-types-to-regex.patch added to -mm tree akpm
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.