From: Kirill A. Shutemov Date: Tue, 29 May 2012 22:06:56 +0000 (-0700) Subject: memcg: mark stat field of mem_cgroup struct as __percpu X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=3a7951b4cf8c6be48e20523b724d9188f6c91ba7;p=openwrt%2Fstaging%2Fblogic.git memcg: mark stat field of mem_cgroup struct as __percpu It fixes a lot of sparse warnings. Signed-off-by: Kirill A. Shutemov Acked-by: KAMEZAWA Hiroyuki Acked-by: Michal Hocko Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 5c56765c848a..18becde87577 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -304,7 +304,7 @@ struct mem_cgroup { /* * percpu counter. */ - struct mem_cgroup_stat_cpu *stat; + struct mem_cgroup_stat_cpu __percpu *stat; /* * used when a cpu is offlined or other synchronizations * See mem_cgroup_read_stat().