Skip to contentSkip to conversation

checkpatch-check-compatible-strings-in-c-and-h-too.patch removed from -mm tree

merged [email protected] 1 participant 1 message Apr 4, 2014 Checkpatch

lore
Share & tools
lore
#0 lore raw

Subject: [merged] checkpatch-check-compatible-strings-in-c-and-h-too.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Fri, 04 Apr 2014 12:34:20 -0700

The patch titled
Subject: checkpatch: check compatible strings in .c and .h too
has been removed from the -mm tree. Its filename was
checkpatch-check-compatible-strings-in-c-and-h-too.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Florian Vaussard <[email protected]>
Subject: checkpatch: check compatible strings in .c and .h too

Look for ".compatible = "foo" strings not only in .dts files, but in .c and .h too.

---

 scripts/checkpatch.pl |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
scripts/checkpatch.pl renamed from scripts/checkpatch.pl~checkpatch-check-compatible-strings-in-c-and-h-too +4 -2
diff -puN scripts/checkpatch.pl~checkpatch-check-compatible-strings-in-c-and-h-too scripts/checkpatch.pl
@@ -2074,8 +2074,10 @@ sub process {
 		}
 
 # check for DT compatible documentation
-		if (defined $root && $realfile =~ /\.dts/ &&
-		    $rawline =~ /^\+\s*compatible\s*=/) {
+		if (defined $root &&
+			(($realfile =~ /\.dtsi?$/ && $line =~ /^\+\s*compatible\s*=\s*\"/) ||
+			 ($realfile =~ /\.[ch]$/ && $line =~ /^\+.*\.compatible\s*=\s*\"/))) {
+
 			my @compats = $rawline =~ /\"([a-zA-Z0-9\-\,\.\+_]+)\"/g;
 
 			foreach my $compat (@compats) {

_

Patches currently in -mm which might be from [email protected] are

origin.patch
linux-next.patch