* [merged] checkpatch-ignore-generated-camelcase-defines-and-enum-values.patch removed from -mm tree
@ 2020-12-16 17:09 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2020-12-16 17:09 UTC (permalink / raw)
To: joe, l.stelmach, mm-commits
The patch titled
Subject: checkpatch: ignore generated CamelCase defines and enum values
has been removed from the -mm tree. Its filename was
checkpatch-ignore-generated-camelcase-defines-and-enum-values.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Łukasz Stelmach <l.stelmach@samsung.com>
Subject: checkpatch: ignore generated CamelCase defines and enum values
Ignore autogenerated CamelCase-like defines and enum values like
DRM_MODE_CONNECTOR_Unknown or ETHTOOL_LINK_MODE_Asym_Pause_BIT.
Link: https://lkml.kernel.org/r/20201022184916.7904-1-l.stelmach@samsung.com
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Suggested-by: Joe Perches <joe@perches.com>
Acked-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
scripts/checkpatch.pl | 2 ++
1 file changed, 2 insertions(+)
--- a/scripts/checkpatch.pl~checkpatch-ignore-generated-camelcase-defines-and-enum-values
+++ a/scripts/checkpatch.pl
@@ -5320,6 +5320,8 @@ sub process {
#CamelCase
if ($var !~ /^$Constant$/ &&
$var =~ /[A-Z][a-z]|[a-z][A-Z]/ &&
+#Ignore some autogenerated defines and enum values
+ $var !~ /^(?:[A-Z]+_){1,5}[A-Z]{1,3}[a-z]/ &&
#Ignore Page<foo> variants
$var !~ /^(?:Clear|Set|TestClear|TestSet|)Page[A-Z]/ &&
#Ignore SI style variants like nS, mV and dB
_
Patches currently in -mm which might be from l.stelmach@samsung.com are
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-12-16 17:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-16 17:09 [merged] checkpatch-ignore-generated-camelcase-defines-and-enum-values.patch removed from -mm tree akpm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).