diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2015-02-04 13:47:54 +1100 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2015-02-09 14:26:51 +1100 |
commit | 70e3296bd10976f672114142a615131983f93386 (patch) | |
tree | 6268931cea0ddc526599ab76afa7d84d8bc12a45 | |
parent | 0820568cd89374d937d559e0afcbb3e6236fed62 (diff) | |
download | linux-70e3296bd10976f672114142a615131983f93386.tar.gz linux-70e3296bd10976f672114142a615131983f93386.tar.xz |
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>
-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 f84202772257..8639cb0df9b0 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -3013,8 +3013,13 @@ static void do_free_init(struct rcu_head *head) kfree(m); } -/* This is where the real work happens */ -static int do_init_module(struct module *mod) +/* + * This is where the real work happens. + * + * Keep it uninlined to provide a reliable breakpoint target, e.g. for the gdb + * helper command 'lx-symbols'. + */ +static noinline int do_init_module(struct module *mod) { int ret = 0; struct mod_initfree *freeinit; |