Skip to contentSkip to conversation

checkpatch: Improve CVS revision marker check

PATCH New Kari Argillander 1 participant 1 message Oct 27, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 checkpatch: Improve CVS revision marker check

This check gives false alarms at least in fs/ntfs3/ as there $LogFile is used quite lot because it is name of file which logs NTFS metadata. This improves check so it does not false alarm so easily.

---
v2:
- Just improve checking. Thank for Jow Perches for regex.
v1:
Link: lore.kernel.org/ntfs3/[email protected]

---
 scripts/checkpatch.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/checkpatch.pl +1 -1
index 461d4221e4a4..a45c6274fcb4 100755
@@ -4018,7 +4018,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);
 		}
Signature · 1 line
2.30.2