From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50435) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXU0i-0003RS-Vg for qemu-devel@nongnu.org; Wed, 10 Aug 2016 09:57:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bXU0h-000891-1i for qemu-devel@nongnu.org; Wed, 10 Aug 2016 09:57:31 -0400 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]:33778) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXU0g-00088k-RV for qemu-devel@nongnu.org; Wed, 10 Aug 2016 09:57:30 -0400 Received: by mail-wm0-x244.google.com with SMTP id o80so9708127wme.0 for ; Wed, 10 Aug 2016 06:57:30 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Wed, 10 Aug 2016 15:57:11 +0200 Message-Id: <1470837437-14713-9-git-send-email-pbonzini@redhat.com> In-Reply-To: <1470837437-14713-1-git-send-email-pbonzini@redhat.com> References: <1470837437-14713-1-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PULL 08/14] checkpatch: ignore automatically imported Linux headers List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= From: Radim Krčmář 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ář Signed-off-by: Paolo Bonzini --- 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