checkpatch: Remove cvs keyword check
Subsystems (5)
PATCH 1/1 checkpatch: Remove cvs keyword check
Time has pass and we do not need these anymore as almost all people are using git now days. Those who use cvs for kernel development probably will handle cvs pretty well already so this check is not needed anymore.
---
If someona nack about this can you also help howto fix false alarms in fs/ntfs3/ by this cvs check. We need to use $Log in comments as it is real name. I'm also triccered to see these false alarms. I'm not familier with perl regex syntax and do not really understand what we are trying to do here. Maybe also because I do not know CVS very well.
I can do patch or someone else can do it. I just want this "problem" away as it has been sitting my todo list too long.
--- Documentation/dev-tools/checkpatch.rst | 5 ----- scripts/checkpatch.pl | 6 ------ 2 files changed, 11 deletions(-)
Documentation/dev-tools/checkpatch.rst +0 -5
@@ -1105,11 +1105,6 @@ Others The patch seems to be corrupted or lines are wrapped. Please regenerate the patch file before sending it to the maintainer. - **CVS_KEYWORD** - Since linux moved to git, the CVS markers are no longer used. - So, CVS style keywords ($Id$, $Revision$, $Log$) should not be - added. - **DEFAULT_NO_BREAK** switch default case is sometimes written as "default:;". This can cause new cases added below default to be defective.
scripts/checkpatch.pl +0 -6
@@ -4017,12 +4017,6 @@ sub process { } } -# check for RCS/CVS revision markers - if ($rawline =~ /^\+.*\$(Revision|Log|Id)(?:\$|)/) { - WARN("CVS_KEYWORD", - "CVS style keyword markers, these will _not_ be updated\n". $herecurr); - } - # check for old HOTPLUG __dev<foo> section markings if ($line =~ /\b(__dev(init|exit)(data|const|))\b/) { WARN("HOTPLUG_SECTION",
Signature · 1 line
2.25.1
Joe Perches
maintainerQuoted 3 lines · Kari Argillander
Time has pass and we do not need these anymore as almost all people are using git now days. Those who use cvs for kernel development probably will handle cvs pretty well already so this check is not needed anymore.
I think it's a relatively harmless thing to keep.
scripts/checkpatch.pl
Quoted 1 line
scripts/checkpatch.pl +0
-0
[]
scripts/checkpatch.pl sub process { · line 4021
Quoted 6 lines
scripts/checkpatch.pl +0
-2@@ -4017,12 +4017,6 @@ sub process { } } -# check for RCS/CVS revision markers - if ($rawline =~ /^\+.*\$(Revision|Log|Id)(?:\$|)/) {
Looks like this would be better using
if ($rawline =~ /^\+.*\b\$(?:Revision|Log|Id)\$?\b/) {Quoted 2 lines
scripts/checkpatch.pl +0
-2- WARN("CVS_KEYWORD", - "CVS style keyword markers, these will _not_ be updated\n". $herecurr);
Quoted 13 lines · Joe Perches
Quoted 3 lines · Kari Argillander
Time has pass and we do not need these anymore as almost all people are using git now days. Those who use cvs for kernel development probably will handle cvs pretty well already so this check is not needed anymore.
I think it's a relatively harmless thing to keep.
scripts/checkpatch.pl
Quoted 1 line
scripts/checkpatch.pl +0
-0[]
Quoted 4 lines
scripts/checkpatch.pl +0
-0@@ -4017,12 +4017,6 @@ sub process { } }
Quoted 6 lines
scripts/checkpatch.pl sub process { · line 4021
Quoted 2 lines
scripts/checkpatch.pl +0
-2-# check for RCS/CVS revision markers - if ($rawline =~ /^\+.*\$(Revision|Log|Id)(?:\$|)/) {Looks like this would be better using
if ($rawline =~ /^\+.*\b\$(?:Revision|Log|Id)\$?\b/) {
As I say before I do not know much about cvs or perl regex, but I do not get any match with your suggestion. Test strings which I have tested:
/* $Log: frob.c,v $ */
/* $Log: frob.c,v$ */
/* $Log$ */
But these can be wrong as I do not fully understand how cvs keywords works.
Quoted 5 lines
Quoted 3 lines
scripts/checkpatch.pl +0
-2- WARN("CVS_KEYWORD", - "CVS style keyword markers, these will _not_ be updated\n". $herecurr);
Joe Perches
maintainerQuoted 14 lines · Kari Argillander
Quoted 13 lines · Joe Perches
Quoted 3 lines · Kari Argillander
Time has pass and we do not need these anymore as almost all people are using git now days. Those who use cvs for kernel development probably will handle cvs pretty well already so this check is not needed anymore.
I think it's a relatively harmless thing to keep.
scripts/checkpatch.pl
Quoted 1 line
scripts/checkpatch.pl +0
-0[]
Quoted 4 lines
scripts/checkpatch.pl +0
-0@@ -4017,12 +4017,6 @@ sub process { } }
Quoted 8 lines
Quoted 6 lines
scripts/checkpatch.pl sub process { · line 4021
Quoted 2 lines
scripts/checkpatch.pl +0
-2-# check for RCS/CVS revision markers - if ($rawline =~ /^\+.*\$(Revision|Log|Id)(?:\$|)/) {Looks like this would be better using
if ($rawline =~ /^\+.*\b\$(?:Revision|Log|Id)\$?\b/) {As I say before I do not know much about cvs or perl regex, but I do not get any match with your suggestion
Meh. The regex doesn't like the \b before and after the $
This seems better:
--- scripts/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/checkpatch.pl +1 -1
@@ -4063,7 +4063,7 @@ sub process { } # check for RCS/CVS revision markers - if ($rawline =~ /^\+.*\$(Revision|Log|Id)(?:\$|)/) { + if ($rawline =~ /^\+.*\$(?:Revision|Log|Id)(?::.*)?\$/) { WARN("CVS_KEYWORD", "CVS style keyword markers, these will _not_ be updated\n". $herecurr); }