Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1249400 > unrolled thread

[PATCH] mm/hugetlb: make node_hstates array static

Started byAlexander Kuleshov <kuleshovmail@gmail.com>
First post2015-10-17 19:40 +0200
Last post2015-10-17 19:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] mm/hugetlb: make node_hstates array static Alexander Kuleshov <kuleshovmail@gmail.com> - 2015-10-17 19:40 +0200

#1249400 — [PATCH] mm/hugetlb: make node_hstates array static

FromAlexander Kuleshov <kuleshovmail@gmail.com>
Date2015-10-17 19:40 +0200
Subject[PATCH] mm/hugetlb: make node_hstates array static
Message-ID<qkDCy-4nX-19@gated-at.bofh.it>
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>
---
 mm/hugetlb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/hugetlb.c b/mm/hugetlb.c
index 9cc7734..3afd92f 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
-- 
2.6.0

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web