X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=scripts%2Fheaders_check.pl;h=8b2da054cdc30a0ddeaf1d59dee73d220083d57c;hb=49d8ffab82342904e22f156530649faff9e6baae;hp=62320f93e903edeceab7c7e621b750647d0ca75a;hpb=d3255ec483ca048192f6e8a8789e08e32b379b84;p=cascardo%2Flinux.git diff --git a/scripts/headers_check.pl b/scripts/headers_check.pl index 62320f93e903..8b2da054cdc3 100755 --- a/scripts/headers_check.pl +++ b/scripts/headers_check.pl @@ -69,6 +69,10 @@ sub check_declarations if ($line =~ m/^void seqbuf_dump\(void\);/) { return; } + # drm headers are being C++ friendly + if ($line =~ m/^extern "C"/) { + return; + } if ($line =~ m/^(\s*extern|unsigned|char|short|int|long|void)\b/) { printf STDERR "$filename:$lineno: " . "userspace cannot reference function or " .