Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit be02a186 authored by Jan Kiszka's avatar Jan Kiszka Committed by Linus Torvalds
Browse files

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: default avatarJan Kiszka <jan.kiszka@siemens.com>
Acked-by: default avatarRusty 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: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 66051720
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -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;