Commit 8bd30c10 authored by Dou Liyang's avatar Dou Liyang Committed by Linus Torvalds

mm/kmemleak.c: make kmemleak_boot_config() __init

The early_param() is only called during kernel initialization, So Linux
marks the functions of it with __init macro to save memory.

But it forgot to mark the kmemleak_boot_config().  So, Make it __init as

Link: default avatarDou Liyang <>
Reviewed-by: default avatarAndrew Morton <>
Cc: Catalin Marinas <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent e9e9b7ec
......@@ -1963,7 +1963,7 @@ static void kmemleak_disable(void)
* Allow boot-time kmemleak disabling (enabled by default).
static int kmemleak_boot_config(char *str)
static int __init kmemleak_boot_config(char *str)
if (!str)
return -EINVAL;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment