From: Jan Kiszka Date: Tue, 17 Feb 2015 21:46:50 +0000 (-0800) Subject: kernel/module.c: do not inline do_init_module() X-Git-Tag: v4.0-rc1~61^2~25 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=be02a1862304b126cd6ba4f347fa5db59460a776;p=platform%2Fkernel%2Flinux-exynos.git 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 Acked-by: Rusty Russell Cc: Thomas Gleixner Cc: Jason Wessel Cc: Andi Kleen Cc: Ben Widawsky Cc: Borislav Petkov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/module.c b/kernel/module.c index 8426ad4..b34813f 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -3025,8 +3025,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;