From: Alexander Kuleshov Date: Fri, 6 Nov 2015 02:50:14 +0000 (-0800) Subject: mm/hugetlb: make node_hstates array static X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b4e289a6a659c5c2c056a67fa4f31f3dd8317537;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/hugetlb.c b/mm/hugetlb.c index abfbe8ca3323..4fc590a1257d 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -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