Skip to contentSkip to conversation

v4l/scripts: Fix make checkpatch operation with in tree checkpatch.pl

PATCH New Andy Walls 1 participant 1 message Nov 9, 2009 Media (V4L/DVB)

lore
Share & tools
lore

Andy Walls

author
#0 lore raw

PATCH 1/1 v4l/scripts: Fix make checkpatch operation with in tree checkpatch.pl

Mauro,

make checkpatch wasn't working for me.

I found that the new version of checkpatch.pl that's in the v4l/dvb tree doesn't emit a version number unless explicitly requested.

This patch gets 'make checkpatch' working (and complaining again) for me.

Regards,
Andy

v4l/scripts/check.pl +3 -1
diff -r d2aaff136907 v4l/scripts/check.pl
@@ -56,11 +56,13 @@
 }
 close IN;
 
-my $intree_checkpatch = "scripts/checkpatch.pl --no-tree --strict";
+my $intree_checkpatch = "scripts/checkpatch.pl --version ";
 if (!open IN,"$intree_checkpatch|") {
 	$intree_checkpatch = "v4l/".$intree_checkpatch;
 	open IN,"$intree_checkpatch|";
 }
+$intree_checkpatch =~ s/--version/--no-tree --strict/;
+
 while (<IN>) {
 	tr/A-Z/a-z/;
 	if (m/version\s*:\s*([\d\.]+)/) {