Messages in this thread Patch in this message | | | Date | Mon, 11 Oct 2004 22:15:33 +0200 | From | Adrian Bunk <> | Subject | [patch] 2.6.9-rc4-mm1: ALSA compile error with KMOD=n |
| |
On Mon, Oct 11, 2004 at 03:25:02AM -0700, Andrew Morton wrote: >... > Changes since 2.6.9-rc3-mm3: >... > bk-alsa.patch >...
This causes the following compile error with CONFIG_KMOD=n:
<-- snip -->
... CC sound/core/seq/seq_device.o sound/core/seq/seq_device.c: In function `snd_seq_device_register_driver': sound/core/seq/seq_device.c:332: warning: implicit declaration of function `snd_seq_autoload_lock' sound/core/seq/seq_device.c:335: warning: implicit declaration of function `snd_seq_autoload_unlock' ... LD .tmp_vmlinux1 sound/built-in.o(.text+0xc9ae1): In function `snd_seq_device_register_driver': : undefined reference to `snd_seq_autoload_lock' sound/built-in.o(.text+0xc9af7): In function `snd_seq_device_register_driver': : undefined reference to `snd_seq_autoload_unlock' sound/built-in.o(.text+0xc9b27): In function `snd_seq_device_register_driver': : undefined reference to `snd_seq_autoload_unlock' sound/built-in.o(.text+0xc9b9e): In function `snd_seq_device_register_driver': : undefined reference to `snd_seq_autoload_unlock' make: *** [.tmp_vmlinux1] Error 1
<-- snip -->
The fix is simple:
Signed-off-by: Adrian Bunk <bunk@stusta.de>
--- linux-2.6.9-rc4-mm1-full/sound/core/seq/seq_device.c.old 2004-10-11 21:40:10.000000000 +0200 +++ linux-2.6.9-rc4-mm1-full/sound/core/seq/seq_device.c 2004-10-11 21:40:38.000000000 +0200 @@ -41,6 +41,7 @@ #include <sound/core.h> #include <sound/info.h> #include <sound/seq_device.h> +#include <sound/seq_kernel.h> #include <sound/initval.h> #include <linux/kmod.h> #include <linux/slab.h> - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |