From 7e98b4cad2ff9934d8b5855b291c2baaa7543801 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Wed, 11 Jul 2018 11:32:20 +0200 Subject: [PATCH] checkpatch: skip foreign code --- contrib/scripts/checkpatch.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contrib/scripts/checkpatch.pl b/contrib/scripts/checkpatch.pl index f9ad95dda0..62507aa219 100755 --- a/contrib/scripts/checkpatch.pl +++ b/contrib/scripts/checkpatch.pl @@ -118,6 +118,10 @@ if ($is_file and $filename ne $ARGV) { next unless $filename =~ /\.[ch]$/; next if $filename =~ /\/nm-[^\/]+-enum-types\.[ch]$/; +next if $filename =~ /\bsrc\/systemd\// + and not $filename =~ /\/sd-adapt\// + and not $filename =~ /\/nm-/; +next if $filename =~ /\/(n-acd|c-list|c-siphash)\//; complain ('Tabs are only allowed at the beginning of a line') if $line =~ /[^\t]\t/; complain ('Trailing whitespace') if $line =~ /[ \t]$/;