lkml.org 
[lkml]   [2000]   [Mar]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
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/

\
 
 \ /
  Last update: 2005-03-22 13:57    [W:0.026 / U:0.384 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site