Commit a7e1d98f authored by Paul Bolle's avatar Paul Bolle Committed by Linus Torvalds
Browse files

headers_check: special case seqbuf_dump()

"make headers_check" warns about soundcard.h for (at least) five years
    [...]/usr/include/linux/soundcard.h:1054: userspace cannot reference function or variable defined in the kernel

We're apparently stuck with providing OSSlib-3.8 compatibility, so let's
special case this declaration just to silence it.


0) Support for OSSlib post 3.8 was already removed in commit 43a99076
   ("sound: Remove OSSlib stuff from linux/soundcard.h").  Five years have
   passed since that commit: do people still care about OSSlib-3.8?  If
   not, quite a bit of code could be remove from soundcard.h (and probably

2) By the way, what is actually meant by:
    It is no longer possible to actually link against OSSlib with this
    header, but we still provide these macros for programs using them.

Doesn't that mean compatibility to OSSlib isn't even useful?

3) Anyhow, a previous discussion soundcard.h, which led to that commit,
   starts at


4) And, yes, I sneaked in a whitespace fix.

Signed-off-by: default avatarPaul Bolle <>
Cc: Takashi Iwai <>
Acked-by: default avatarArnd Bergmann <>
Cc: Michal Marek <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 59d42cd4
......@@ -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\);/) {
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";
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment