Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Li Zefan and committed by
Linus Torvalds
0eb253e2 9e1c9d86

+1 -1
+1 -1
mm/memcontrol.c
··· 2202 2202 } 2203 2203 #endif 2204 2204 2205 - static struct cgroup_subsys_state * 2205 + static struct cgroup_subsys_state * __ref 2206 2206 mem_cgroup_create(struct cgroup_subsys *ss, struct cgroup *cont) 2207 2207 { 2208 2208 struct mem_cgroup *mem, *parent;