]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
mm/hugetlb: make node_hstates array static
authorAlexander Kuleshov <kuleshovmail@gmail.com>
Wed, 21 Oct 2015 22:03:19 +0000 (09:03 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 21 Oct 2015 22:03:19 +0000 (09:03 +1100)
There are no users of the node_hstates array outside of the
mm/hugetlb.c. So let's make it static.

Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/hugetlb.c

index abfbe8ca3323baa668e0564567307893abc93eba..4fc590a1257d341ad57ac005ae434296f16c9d6f 100644 (file)
@@ -2376,7 +2376,7 @@ struct node_hstate {
        struct kobject          *hugepages_kobj;
        struct kobject          *hstate_kobjs[HUGE_MAX_HSTATE];
 };
-struct node_hstate node_hstates[MAX_NUMNODES];
+static struct node_hstate node_hstates[MAX_NUMNODES];
 
 /*
  * A subset of global hstate attributes for node devices