diff options
author | Dou Liyang <[email protected]> | 2018-04-05 16:23:46 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2018-04-05 21:36:26 -0700 |
commit | 8bd30c1090995ce800ae257fbbabfd6b6899b57c (patch) | |
tree | 8d827c4c88604a4ca06c3bcd1b8d198820770228 | |
parent | e9e9b7ecee4a139a6fbe2e15ef224ca6b6c47d57 (diff) |
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/[email protected]
Signed-off-by: Dou Liyang <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Cc: Catalin Marinas <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
-rw-r--r-- | mm/kmemleak.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/kmemleak.c b/mm/kmemleak.c index 46c2290a08f1..8029501dc65c 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; |