From: Li Zefan Date: Thu, 15 Jan 2009 21:51:25 +0000 (-0800) Subject: memcg: fix section mismatch X-Git-Tag: accepted/tizen/common/20141203.182822~17639 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0eb253e223c88b982461e59154fcad1b82597592;p=platform%2Fkernel%2Flinux-arm64.git 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 Signed-off-by: Li Zefan Acked-by; KAMEZAWA Hiroyuki Cc: Balbir Singh Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/memcontrol.c b/mm/memcontrol.c index fb62b43..f0dc076 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -2202,7 +2202,7 @@ static void __init enable_swap_cgroup(void) } #endif -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;