Commit 0eb253e2 authored by Li Zefan's avatar Li Zefan Committed by Linus Torvalds
Browse files

memcg: fix section mismatch

At system boot when creating the top cgroup, mem_cgroup_create() calls
enable_swap_cgroup() which is marked as __init, so mark
mem_cgroup_create() as __ref to avoid false section mismatch warning.
Reported-by: default avatarRakib Mullick <>
Signed-off-by: default avatarLi Zefan <>
Acked-by; KAMEZAWA Hiroyuki <>
Cc: Balbir Singh <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 9e1c9d86
......@@ -2202,7 +2202,7 @@ static void __init enable_swap_cgroup(void)
static struct cgroup_subsys_state *
static struct cgroup_subsys_state * __ref
mem_cgroup_create(struct cgroup_subsys *ss, struct cgroup *cont)
struct mem_cgroup *mem, *parent;
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