diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2015-02-17 16:46:50 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-17 17:34:53 -0500 |
commit | be02a1862304b126cd6ba4f347fa5db59460a776 (patch) | |
tree | 917c8a1c33f6ee6d82d9784fd21a174dc397bc6d /kernel | |
parent | 66051720b84127cac32f34a30c91390c0ebf898f (diff) |
kernel/module.c: do not inline do_init_module()
This provides a reliable breakpoint target, required for automatic symbol
loading via the gdb helper command 'lx-symbols'.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Acked-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Jason Wessel <jason.wessel@windriver.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Ben Widawsky <ben@bwidawsk.net>
Cc: Borislav Petkov <bp@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/module.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/kernel/module.c b/kernel/module.c index 8426ad48362c..b34813f725e9 100644 --- a/kernel/module.c +++ b/kernel/module.c | |||
@@ -3025,8 +3025,13 @@ static void do_free_init(struct rcu_head *head) | |||
3025 | kfree(m); | 3025 | kfree(m); |
3026 | } | 3026 | } |
3027 | 3027 | ||
3028 | /* This is where the real work happens */ | 3028 | /* |
3029 | static int do_init_module(struct module *mod) | 3029 | * This is where the real work happens. |
3030 | * | ||
3031 | * Keep it uninlined to provide a reliable breakpoint target, e.g. for the gdb | ||
3032 | * helper command 'lx-symbols'. | ||
3033 | */ | ||
3034 | static noinline int do_init_module(struct module *mod) | ||
3030 | { | 3035 | { |
3031 | int ret = 0; | 3036 | int ret = 0; |
3032 | struct mod_initfree *freeinit; | 3037 | struct mod_initfree *freeinit; |