diff options
Diffstat (limited to 'kernel/module.c')
-rw-r--r-- | kernel/module.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/module.c b/kernel/module.c index 5e14483768bb..3c4fc4bb4b82 100644 --- a/kernel/module.c +++ b/kernel/module.c | |||
@@ -77,6 +77,10 @@ | |||
77 | DEFINE_MUTEX(module_mutex); | 77 | DEFINE_MUTEX(module_mutex); |
78 | EXPORT_SYMBOL_GPL(module_mutex); | 78 | EXPORT_SYMBOL_GPL(module_mutex); |
79 | static LIST_HEAD(modules); | 79 | static LIST_HEAD(modules); |
80 | #ifdef CONFIG_KGDB_KDB | ||
81 | struct list_head *kdb_modules = &modules; /* kdb needs the list of modules */ | ||
82 | #endif /* CONFIG_KGDB_KDB */ | ||
83 | |||
80 | 84 | ||
81 | /* Block module loading/unloading? */ | 85 | /* Block module loading/unloading? */ |
82 | int modules_disabled = 0; | 86 | int modules_disabled = 0; |