in order to compile kernel in core kernel when module support is _disabled_,
you need to apply this :

--- /usr/src/alsa-driver-0.9.0beta9/kernel/sound.c      Fri Oct 12 10:43:18 2001
+++ sound.c     Wed Nov 28 12:58:01 2001
@@ -26,9 +26,7 @@
 #include <sound/version.h>
 #include <sound/control.h>
 #include <sound/initval.h>
-#ifdef CONFIG_KMOD
 #include <linux/kmod.h>
-#endif
 #ifdef CONFIG_DEVFS_FS
 #include <linux/devfs_fs_kernel.h>
 #endif


in fact, the #ifdef/#endif couple is useless.

the following patch remove all of them:

diff -ru alsa2/seq/seq_clientmgr.c alsa/seq/seq_clientmgr.c
--- alsa2/seq/seq_clientmgr.c	Wed Nov 28 02:38:05 2001
+++ alsa/seq/seq_clientmgr.c	Wed Nov 28 14:16:10 2001
@@ -23,9 +23,7 @@
 
 #include <sound/driver.h>
 #include <sound/minors.h>
-#ifdef CONFIG_KMOD
 #include <linux/kmod.h>
-#endif
 
 #include <sound/seq_kernel.h>
 #include "seq_clientmgr.h"
diff -ru alsa2/seq/seq_device.c alsa/seq/seq_device.c
--- alsa2/seq/seq_device.c	Wed Nov 28 02:38:05 2001
+++ alsa/seq/seq_device.c	Wed Nov 28 14:16:19 2001
@@ -41,9 +41,7 @@
 #include <sound/info.h>
 #include <sound/seq_device.h>
 #include <sound/initval.h>
-#ifdef CONFIG_KMOD
 #include <linux/kmod.h>
-#endif
 
 MODULE_AUTHOR("Takashi Iwai <[EMAIL PROTECTED]>");
 MODULE_DESCRIPTION("ALSA sequencer device management");
diff -ru alsa2/sound.c alsa/sound.c
--- alsa2/sound.c	Fri Oct 12 10:43:18 2001
+++ alsa/sound.c	Wed Nov 28 12:58:01 2001
@@ -26,9 +26,7 @@
 #include <sound/version.h>
 #include <sound/control.h>
 #include <sound/initval.h>
-#ifdef CONFIG_KMOD
 #include <linux/kmod.h>
-#endif
 #ifdef CONFIG_DEVFS_FS
 #include <linux/devfs_fs_kernel.h>
 #endif
diff -ru alsa2/timer.c alsa/timer.c
--- alsa2/timer.c	Wed Nov 28 02:38:05 2001
+++ alsa/timer.c	Wed Nov 28 14:16:56 2001
@@ -26,9 +26,7 @@
 #include <sound/info.h>
 #include <sound/minors.h>
 #include <sound/initval.h>
-#ifdef CONFIG_KMOD
 #include <linux/kmod.h>
-#endif
 #ifdef CONFIG_KERNELD
 #include <linux/kerneld.h>
 #endif

Reply via email to