aboutsummaryrefslogtreecommitdiffstats
path: root/mm/memcontrol.c
diff options
context:
space:
mode:
authorLi Zefan <lizf@cn.fujitsu.com>2009-01-15 16:51:25 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2009-01-15 19:39:41 -0500
commit0eb253e223c88b982461e59154fcad1b82597592 (patch)
tree87d94d6512c26a0b70a452c0b50958b443824966 /mm/memcontrol.c
parent9e1c9d865543593ee92ec3a5075f064dec981a96 (diff)
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: Rakib Mullick <rakib.mullick@gmail.com> Signed-off-by: Li Zefan <lizf@cn.fujitsu.com> Acked-by; KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Cc: Balbir Singh <balbir@linux.vnet.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/memcontrol.c')
-rw-r--r--mm/memcontrol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index fb62b4335fa9..f0dc076adf05 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -2202,7 +2202,7 @@ static void __init enable_swap_cgroup(void)
2202} 2202}
2203#endif 2203#endif
2204 2204
2205static struct cgroup_subsys_state * 2205static struct cgroup_subsys_state * __ref
2206mem_cgroup_create(struct cgroup_subsys *ss, struct cgroup *cont) 2206mem_cgroup_create(struct cgroup_subsys *ss, struct cgroup *cont)
2207{ 2207{
2208 struct mem_cgroup *mem, *parent; 2208 struct mem_cgroup *mem, *parent;