Commit 14298d36 authored by Dou Liyang's avatar Dou Liyang Committed by Linus Torvalds

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: default avatarDou Liyang <>
Reviewed-by: default avatarAndrew Morton <>
Acked-by: default avatarMichal Hocko <>
Cc: Philippe Ombredanne <>
Cc: Kate Stewart <>
Cc: Michal Hocko <>
Cc: Greg Kroah-Hartman <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 1173194e
......@@ -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;
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