Messages in this thread Patch in this message | | | Date | Tue, 14 Mar 2000 17:35:35 -0500 | From | Jeffrey Fielding <> | Subject | [PATCH] Building 2.3.51 with modules |
| |
Here's a patch to define try_inc_mod_count so the kernel can be built without modules. I posted a similar patch earlier, but Vladislav Malyshkin proposed a more elegant solution.
Jeff Fielding
--- linux/include/linux/module.h.orig Tue Mar 14 17:34:22 2000 +++ linux/include/linux/module.h Mon Mar 13 21:10:39 2000 @@ -145,7 +145,11 @@ /* Find a symbol exported by the kernel or another module */ extern unsigned long get_module_symbol(char *, char *);
+#ifdef CONFIG_MODULES extern int try_inc_mod_count(struct module *mod); +#else +#define try_inc_mod_count(mod) 1 +#endif
#if defined(MODULE) && !defined(__GENKSYMS__)
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |