From 2f0e697e9b9cd2bc00d774bf11a31aadb5171d63 Mon Sep 17 00:00:00 2001 From: "Kirill A. Shutemov" Date: Wed, 25 Apr 2012 11:03:46 +1000 Subject: [PATCH] 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 --- mm/memcontrol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 0c6d3a9a363a..0a91ae3b6940 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -308,7 +308,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(). -- 2.39.5