提交 b4e289a6 编写于 作者: A Alexander Kuleshov 提交者: Linus Torvalds

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: NAlexander Kuleshov <kuleshovmail@gmail.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 9dd861d5
...@@ -2376,7 +2376,7 @@ struct node_hstate { ...@@ -2376,7 +2376,7 @@ struct node_hstate {
struct kobject *hugepages_kobj; struct kobject *hugepages_kobj;
struct kobject *hstate_kobjs[HUGE_MAX_HSTATE]; 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 * A subset of global hstate attributes for node devices
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册