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>
This commit is contained in:
parent
9e1c9d8655
commit
0eb253e223
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue