diff options
Diffstat (limited to 'kernel/module.c')
| -rw-r--r-- | kernel/module.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/kernel/module.c b/kernel/module.c index ccd641991842..437a74a7524a 100644 --- a/kernel/module.c +++ b/kernel/module.c | |||
| @@ -55,6 +55,7 @@ | |||
| 55 | #include <linux/async.h> | 55 | #include <linux/async.h> |
| 56 | #include <linux/percpu.h> | 56 | #include <linux/percpu.h> |
| 57 | #include <linux/kmemleak.h> | 57 | #include <linux/kmemleak.h> |
| 58 | #include <linux/jump_label.h> | ||
| 58 | 59 | ||
| 59 | #define CREATE_TRACE_POINTS | 60 | #define CREATE_TRACE_POINTS |
| 60 | #include <trace/events/module.h> | 61 | #include <trace/events/module.h> |
| @@ -2036,7 +2037,7 @@ static inline void layout_symtab(struct module *mod, struct load_info *info) | |||
| 2036 | { | 2037 | { |
| 2037 | } | 2038 | } |
| 2038 | 2039 | ||
| 2039 | static void add_kallsyms(struct module *mod, struct load_info *info) | 2040 | static void add_kallsyms(struct module *mod, const struct load_info *info) |
| 2040 | { | 2041 | { |
| 2041 | } | 2042 | } |
| 2042 | #endif /* CONFIG_KALLSYMS */ | 2043 | #endif /* CONFIG_KALLSYMS */ |
| @@ -2309,6 +2310,11 @@ static void find_module_sections(struct module *mod, struct load_info *info) | |||
| 2309 | sizeof(*mod->tracepoints), | 2310 | sizeof(*mod->tracepoints), |
| 2310 | &mod->num_tracepoints); | 2311 | &mod->num_tracepoints); |
| 2311 | #endif | 2312 | #endif |
| 2313 | #ifdef HAVE_JUMP_LABEL | ||
| 2314 | mod->jump_entries = section_objs(info, "__jump_table", | ||
| 2315 | sizeof(*mod->jump_entries), | ||
| 2316 | &mod->num_jump_entries); | ||
| 2317 | #endif | ||
| 2312 | #ifdef CONFIG_EVENT_TRACING | 2318 | #ifdef CONFIG_EVENT_TRACING |
| 2313 | mod->trace_events = section_objs(info, "_ftrace_events", | 2319 | mod->trace_events = section_objs(info, "_ftrace_events", |
| 2314 | sizeof(*mod->trace_events), | 2320 | sizeof(*mod->trace_events), |
