mm/page_cgroup.c: quiet sparse noise
authorH Hartley Sweeten <[email protected]>
Wed, 2 Nov 2011 20:38:36 +0000 (13:38 -0700)
committerLinus Torvalds <[email protected]>
Wed, 2 Nov 2011 23:07:00 +0000 (16:07 -0700)
warning: symbol 'swap_cgroup_ctrl' was not declared. Should it be static?

Signed-off-by: H Hartley Sweeten <[email protected]>
Cc: Paul Menage <[email protected]>
Cc: Li Zefan <[email protected]>
Acked-by: Balbir Singh <[email protected]>
Cc: Daisuke Nishimura <[email protected]>
Acked-by: KAMEZAWA Hiroyuki <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/page_cgroup.c

index 3749ae15a8c8acb1dfc7a06c08eec3da35d643f1..2d123f94a8df49addd2ee3167d31861073da9f84 100644 (file)
@@ -360,7 +360,7 @@ struct swap_cgroup_ctrl {
        spinlock_t      lock;
 };
 
-struct swap_cgroup_ctrl swap_cgroup_ctrl[MAX_SWAPFILES];
+static struct swap_cgroup_ctrl swap_cgroup_ctrl[MAX_SWAPFILES];
 
 struct swap_cgroup {
        unsigned short          id;