patch-2.2.0-pre8 linux/include/linux/kmod.h

Next file: linux/include/linux/mm.h
Previous file: linux/include/linux/if_pppvar.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.0-pre7/linux/include/linux/kmod.h linux/include/linux/kmod.h
@@ -1,4 +1,12 @@
 /*
 	kmod header
 */
+
+#include <linux/config.h>
+
+#ifdef CONFIG_KMOD
 extern int request_module(const char * name);
+#else
+#define request_module(x) do {} while(0)
+#endif
+

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov