mm/hugetlb: make node_hstates array static
Subsystems (2)
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.
Signed-off-by Alexander Kuleshov <[email protected]>
--- mm/hugetlb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/hugetlb.c +1 -1
@@ -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