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
well.

Link: http://lkml.kernel.org/r/20180117034720.26897-1-douly.fnst@cn.fujitsu.comSigned-off-by: default avatarDou Liyang <douly.fnst@cn.fujitsu.com>
Reviewed-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent e9e9b7ec
...@@ -1963,7 +1963,7 @@ static void kmemleak_disable(void) ...@@ -1963,7 +1963,7 @@ static void kmemleak_disable(void)
/* /*
* Allow boot-time kmemleak disabling (enabled by default). * 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) if (!str)
return -EINVAL; return -EINVAL;
......
Markdown is supported
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