From: Kirill A. Shutemov Date: Thu, 12 Apr 2012 22:52:07 +0000 (+1000) Subject: memcg: mark stat field of mem_cgroup struct as __percpu X-Git-Tag: next-20120417~2^2~69 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=697496e997f96047f595644996aa18154d3d35d9;p=karo-tx-linux.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 --- diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 7eda66b78142..a8d386f4be1d 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().