diff options
Diffstat (limited to 'kernel/module.c')
-rw-r--r-- | kernel/module.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/kernel/module.c b/kernel/module.c index e2564580f3f1..333fbcc96978 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; |
@@ -176,8 +180,6 @@ extern const struct kernel_symbol __start___ksymtab_gpl[]; | |||
176 | extern const struct kernel_symbol __stop___ksymtab_gpl[]; | 180 | extern const struct kernel_symbol __stop___ksymtab_gpl[]; |
177 | extern const struct kernel_symbol __start___ksymtab_gpl_future[]; | 181 | extern const struct kernel_symbol __start___ksymtab_gpl_future[]; |
178 | extern const struct kernel_symbol __stop___ksymtab_gpl_future[]; | 182 | extern const struct kernel_symbol __stop___ksymtab_gpl_future[]; |
179 | extern const struct kernel_symbol __start___ksymtab_gpl_future[]; | ||
180 | extern const struct kernel_symbol __stop___ksymtab_gpl_future[]; | ||
181 | extern const unsigned long __start___kcrctab[]; | 183 | extern const unsigned long __start___kcrctab[]; |
182 | extern const unsigned long __start___kcrctab_gpl[]; | 184 | extern const unsigned long __start___kcrctab_gpl[]; |
183 | extern const unsigned long __start___kcrctab_gpl_future[]; | 185 | extern const unsigned long __start___kcrctab_gpl_future[]; |
@@ -1182,7 +1184,7 @@ struct module_notes_attrs { | |||
1182 | struct bin_attribute attrs[0]; | 1184 | struct bin_attribute attrs[0]; |
1183 | }; | 1185 | }; |
1184 | 1186 | ||
1185 | static ssize_t module_notes_read(struct kobject *kobj, | 1187 | static ssize_t module_notes_read(struct file *filp, struct kobject *kobj, |
1186 | struct bin_attribute *bin_attr, | 1188 | struct bin_attribute *bin_attr, |
1187 | char *buf, loff_t pos, size_t count) | 1189 | char *buf, loff_t pos, size_t count) |
1188 | { | 1190 | { |