qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PULL 08/14] checkpatch: ignore automatically imported Linu


From: Paolo Bonzini
Subject: [Qemu-devel] [PULL 08/14] checkpatch: ignore automatically imported Linux headers
Date: Wed, 10 Aug 2016 15:57:11 +0200

From: Radim Krčmář <address@hidden>

Linux uses tabs for indentation and checkpatch always complained about
automatically imported headers.  update-linux-headers.sh could be modified to
expand tabs, but there is no real reason to complain about any ugly code in
Linux headers, so skip all hunk-related checks.

Signed-off-by: Radim Krčmář <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
---
 scripts/checkpatch.pl | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 9297087..8d1813e 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -1319,6 +1319,9 @@ sub process {
 # ignore non-hunk lines and lines being removed
                next if (!$hunk_line || $line =~ /^-/);
 
+# ignore files that are being periodically imported from Linux
+               next if ($realfile =~ 
/^(linux-headers|include\/standard-headers)\//);
+
 #trailing whitespace
                if ($line =~ /^\+.*\015/) {
                        my $herevet = "$here\n" . cat_vet($rawline) . "\n";
-- 
1.8.3.1





reply via email to

[Prev in Thread] Current Thread [Next in Thread]