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: Jan Kiszka's avatarJan Kiszka <>
Acked-by: default avatarRusty Russell <>
Cc: Thomas Gleixner <>
Cc: Jason Wessel <>
Cc: Andi Kleen <>
Cc: Ben Widawsky <>
Cc: Borislav Petkov <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 66051720
...@@ -3025,8 +3025,13 @@ static void do_free_init(struct rcu_head *head) ...@@ -3025,8 +3025,13 @@ static void do_free_init(struct rcu_head *head)
kfree(m); 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; int ret = 0;
struct mod_initfree *freeinit; struct mod_initfree *freeinit;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment