Skip to contentSkip to conversation

mm/hugetlb: make node_hstates array static

PATCH New Alexander Kuleshov 1 participant 1 message Oct 17, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm/hugetlb: make node_hstates array static

There are no users of the node_hstates array outside of the mm/hugetlb.c. So let's make it static.

---
 mm/hugetlb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/hugetlb.c +1 -1
index 9cc7734..3afd92f 100644
@@ -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
Signature · 1 line
2.6.0