summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo Dagum <dagum@engr.sgi.com>2000-03-18 00:50:23 +0000
committerLeo Dagum <dagum@engr.sgi.com>2000-03-18 00:50:23 +0000
commit233af5fa0a90f7aca4c37f71e0f17a9344dff872 (patch)
tree41cd329e4ff331862c4e094e13bbcb74664091ac
parentda7f527fdd6904594aa8ef8b8b8793e61770ca3b (diff)
Move try_inc_mod_count() outside of CONFIG_MODULES macro. You (and
the rest of the linux world) need this fix if you want to build a 2.3.51 kernel with CONFIG_MODULES not set.
-rw-r--r--kernel/module.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/module.c b/kernel/module.c
index c36964022..83b000342 100644
--- a/kernel/module.c
+++ b/kernel/module.c
@@ -350,6 +350,7 @@ err0:
return error;
}
+#endif /* CONFIG_MODULES */
static spinlock_t unload_lock = SPIN_LOCK_UNLOCKED;
int try_inc_mod_count(struct module *mod)
{
@@ -364,6 +365,7 @@ int try_inc_mod_count(struct module *mod)
}
return res;
}
+#ifdef CONFIG_MODULES /* a *big* #ifdef block... */
asmlinkage long
sys_delete_module(const char *name_user)