diff options
-rwxr-xr-x | scripts/headers_check.pl | 4 |
1 files changed, 4 insertions, 0 deletions
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 | |||
69 | if ($line =~ m/^void seqbuf_dump\(void\);/) { | 69 | if ($line =~ m/^void seqbuf_dump\(void\);/) { |
70 | return; | 70 | return; |
71 | } | 71 | } |
72 | # drm headers are being C++ friendly | ||
73 | if ($line =~ m/^extern "C"/) { | ||
74 | return; | ||
75 | } | ||
72 | if ($line =~ m/^(\s*extern|unsigned|char|short|int|long|void)\b/) { | 76 | if ($line =~ m/^(\s*extern|unsigned|char|short|int|long|void)\b/) { |
73 | printf STDERR "$filename:$lineno: " . | 77 | printf STDERR "$filename:$lineno: " . |
74 | "userspace cannot reference function or " . | 78 | "userspace cannot reference function or " . |