Re: soundcard.c - 2.1.77

Alan Cox (alan@lxorguk.ukuu.org.uk)
Sun, 4 Jan 1998 12:50:04 +0000 (GMT)


> soundcard.c: In function `sound_notifier_chain_register':
> soundcard.c:1252: warning: implicit declaration of function
> `notifier_chain_register'
> soundcard.c:1259: dereferencing pointer to incomplete type

Try the following small patch to fix non modular builds of the main
sound core

--- soundmodule.h~ Sat Jan 3 18:33:15 1998
+++ soundmodule.h Sun Jan 4 13:31:11 1998
@@ -1,13 +1,13 @@
#ifndef _SOUNDMODULE_H
#define _SOUNDMODULE_H

-#ifdef MODULE
-
#include <linux/notifier.h>

extern struct notifier_block *sound_locker;
extern void sound_notifier_chain_register(struct notifier_block *);
extern int lock_depth;
+
+#ifdef MODULE

#ifdef SOUND_CORE