]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
memcg: fix section mismatch
authorLi Zefan <lizf@cn.fujitsu.com>
Thu, 15 Jan 2009 21:51:25 +0000 (13:51 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 16 Jan 2009 00:39:41 +0000 (16:39 -0800)
commit0eb253e223c88b982461e59154fcad1b82597592
tree87d94d6512c26a0b70a452c0b50958b443824966
parent9e1c9d865543593ee92ec3a5075f064dec981a96
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>
mm/memcontrol.c