From: Kirill A. Shutemov Date: Thu, 3 May 2012 05:43:59 +0000 (+1000) Subject: memcg: mark stat field of mem_cgroup struct as __percpu X-Git-Tag: next-20120503~2^2~168 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=155d3772bac3013406f903394fbb5e2d99bb9bd9;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 3abb5c94a329..5b00e32f10b8 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -318,7 +318,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().