public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [2.6 patch] mm/hugetlb.c: make resv_map_{alloc,release}() static
@ 2008-08-19 13:46 Adrian Bunk
  2008-08-26  9:33 ` Andy Whitcroft
  0 siblings, 1 reply; 2+ messages in thread
From: Adrian Bunk @ 2008-08-19 13:46 UTC (permalink / raw)
  To: Andy Whitcroft, Mel Gorman, wli; +Cc: Andrew Morton, linux-kernel

This patch makes the needlessly global resv_map_{alloc,release}()
static.

Signed-off-by: Adrian Bunk <bunk@kernel.org>

---
99bcfd48d93a0c6286b6345f52d10a0a1a43f8c4 
diff --git a/mm/hugetlb.c b/mm/hugetlb.c
index 28a2980..c3bb4d6 100644
--- a/mm/hugetlb.c
+++ b/mm/hugetlb.c
@@ -262,7 +262,7 @@ struct resv_map {
 	struct list_head regions;
 };
 
-struct resv_map *resv_map_alloc(void)
+static struct resv_map *resv_map_alloc(void)
 {
 	struct resv_map *resv_map = kmalloc(sizeof(*resv_map), GFP_KERNEL);
 	if (!resv_map)
@@ -274,7 +274,7 @@ struct resv_map *resv_map_alloc(void)
 	return resv_map;
 }
 
-void resv_map_release(struct kref *ref)
+static void resv_map_release(struct kref *ref)
 {
 	struct resv_map *resv_map = container_of(ref, struct resv_map, refs);
 


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-08-26  9:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-19 13:46 [2.6 patch] mm/hugetlb.c: make resv_map_{alloc,release}() static Adrian Bunk
2008-08-26  9:33 ` Andy Whitcroft

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox