From: Dou Liyang Date: Thu, 5 Apr 2018 23:23:46 +0000 (-0700) Subject: mm/kmemleak.c: make kmemleak_boot_config() __init X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=8bd30c1090995ce800ae257fbbabfd6b6899b57c;p=linux.git 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.com Signed-off-by: Dou Liyang Reviewed-by: Andrew Morton Cc: Catalin Marinas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/kmemleak.c b/mm/kmemleak.c index 46c2290a08f18..8029501dc65ce 100644 --- a/mm/kmemleak.c +++ b/mm/kmemleak.c @@ -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;