Skip to contentSkip to conversation

mm/hugetlb.c: make a function static

PATCH In review Adrian Bunk 2 participants 2 messages Oct 24, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm/hugetlb.c: make a function static

return_unused_surplus_pages() can become static.

---
8932fe99341629d50863643229d25666e9f44e03

mm/hugetlb.c +1 -1
index 8b809ec..b65da0d 100644
@@ -323,7 +323,7 @@ free:
  * allocated to satisfy the reservation must be explicitly freed if they were
  * never used.
  */
-void return_unused_surplus_pages(unsigned long unused_resv_pages)
+static void return_unused_surplus_pages(unsigned long unused_resv_pages)
 {
 	static int nid = -1;
 	struct page *page;
Acked-by on v1 1/1
#1 lore raw
Quoted 3 lines · Adrian Bunk

return_unused_surplus_pages() can become static.

Quoted 18 lines

---
8932fe99341629d50863643229d25666e9f44e03

mm/hugetlb.c +1 -1
index 8b809ec..b65da0d 100644
@@ -323,7 +323,7 @@ free:
  * allocated to satisfy the reservation must be explicitly freed if they were
  * never used.
  */
-void return_unused_surplus_pages(unsigned long unused_resv_pages)
+static void return_unused_surplus_pages(unsigned long unused_resv_pages)
 {
 	static int nid = -1;
 	struct page *page;
Signature · 2 lines
Adam Litke - (agl at us.ibm.com)
IBM Linux Technology Center