Merge tag 'gpio-v3.16-2' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw...
[linux-2.6-microblaze.git] / scripts / headers_check.pl
index 64ac238..62320f9 100644 (file)
@@ -65,7 +65,11 @@ sub check_include
 
 sub check_declarations
 {
-       if ($line =~m/^(\s*extern|unsigned|char|short|int|long|void)\b/) {
+       # soundcard.h is what it is
+       if ($line =~ m/^void seqbuf_dump\(void\);/) {
+               return;
+       }
+       if ($line =~ m/^(\s*extern|unsigned|char|short|int|long|void)\b/) {
                printf STDERR "$filename:$lineno: " .
                              "userspace cannot reference function or " .
                              "variable defined in the kernel\n";