* [PATCH next] module.c: fix build breakage when !MODULE_UNLOAD
@ 2009-04-06 13:14 Alexander Beregalov
0 siblings, 0 replies; only message in thread
From: Alexander Beregalov @ 2009-04-06 13:14 UTC (permalink / raw)
To: kees.cook, serue, jmorris, linux-next, linux-kernel
Fix this build error when CONFIG_MODULE_UNLOAD is not set:
kernel/module.c: In function 'sys_init_module':
kernel/module.c:2401: error: 'modules_disabled' undeclared
Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
---
kernel/module.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/kernel/module.c b/kernel/module.c
index 274ab43..5fb0ece 100644
--- a/kernel/module.c
+++ b/kernel/module.c
@@ -73,6 +73,9 @@ DEFINE_MUTEX(module_mutex);
EXPORT_SYMBOL_GPL(module_mutex);
static LIST_HEAD(modules);
+/* Block module loading/unloading? */
+int modules_disabled = 0;
+
/* Waiting for a module to finish initializing? */
static DECLARE_WAIT_QUEUE_HEAD(module_wq);
@@ -782,9 +785,6 @@ static void wait_for_zero_refcount(struct module *mod)
mutex_lock(&module_mutex);
}
-/* Block module loading/unloading? */
-int modules_disabled = 0;
-
SYSCALL_DEFINE2(delete_module, const char __user *, name_user,
unsigned int, flags)
{
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-04-06 13:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-06 13:14 [PATCH next] module.c: fix build breakage when !MODULE_UNLOAD Alexander Beregalov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).