]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - scripts/headers_check.pl
UBUNTU: Ubuntu-4.10.0-37.41
[mirror_ubuntu-zesty-kernel.git] / scripts / headers_check.pl
index 62320f93e903edeceab7c7e621b750647d0ca75a..8b2da054cdc30a0ddeaf1d59dee73d220083d57c 100755 (executable)
@@ -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 " .