summaryrefslogtreecommitdiffstats
path: root/mm/hugetlb.c
diff options
context:
space:
mode:
authorAlexander Kuleshov <kuleshovmail@gmail.com>2015-11-05 18:50:14 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2015-11-05 19:34:48 -0800
commitb4e289a6a659c5c2c056a67fa4f31f3dd8317537 (patch)
tree27b1a41821a0a897ac377e16d2edc3d36fe08610 /mm/hugetlb.c
parent9dd861d55b01f1d0848f82007e8665371ae18710 (diff)
downloadlinux-b4e289a6a659c5c2c056a67fa4f31f3dd8317537.tar.gz
linux-b4e289a6a659c5c2c056a67fa4f31f3dd8317537.tar.bz2
linux-b4e289a6a659c5c2c056a67fa4f31f3dd8317537.zip
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 <kuleshovmail@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/hugetlb.c')
-rw-r--r--mm/hugetlb.c2
1 files changed, 1 insertions, 1 deletions
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