From: Dou Liyang Date: Thu, 5 Apr 2018 23:23:53 +0000 (-0700) Subject: mm/page_poison.c: make early_page_poison_param() __init X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=14298d3663e44705d3f9106343ac8298a5fdff99;p=openwrt%2Fstaging%2Fblogic.git mm/page_poison.c: make early_page_poison_param() __init The early_param() is only called during kernel initialization, So Linux marks the function of it with __init macro to save memory. But it forgot to mark the early_page_poison_param(). So, Make it __init as well. Link: http://lkml.kernel.org/r/20180117034757.27024-1-douly.fnst@cn.fujitsu.com Signed-off-by: Dou Liyang Reviewed-by: Andrew Morton Acked-by: Michal Hocko Cc: Philippe Ombredanne Cc: Kate Stewart Cc: Michal Hocko Cc: Greg Kroah-Hartman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/page_poison.c b/mm/page_poison.c index e83fd44867de..aa2b3d34e8ea 100644 --- a/mm/page_poison.c +++ b/mm/page_poison.c @@ -9,7 +9,7 @@ static bool want_page_poisoning __read_mostly; -static int early_page_poison_param(char *buf) +static int __init early_page_poison_param(char *buf) { if (!buf) return -EINVAL;