[2.6 patch] make mm/hugetlb.c:unmap_ref_private() static

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Adrian Bunk
Date: Tuesday, August 19, 2008 - 6:47 am

This patch makes the needlessly global unmap_ref_private() static.

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

---
4e1c826ff4f7503f5e33c2ad1307cf6b4d2b5758 
diff --git a/mm/hugetlb.c b/mm/hugetlb.c
index c3bb4d6..0c2d6f6 100644
--- a/mm/hugetlb.c
+++ b/mm/hugetlb.c
@@ -1742,10 +1742,8 @@ void unmap_hugepage_range(struct vm_area_struct *vma, unsigned long start,
  * from other VMAs and let the children be SIGKILLed if they are faulting the
  * same region.
  */
-int unmap_ref_private(struct mm_struct *mm,
-					struct vm_area_struct *vma,
-					struct page *page,
-					unsigned long address)
+static int unmap_ref_private(struct mm_struct *mm, struct vm_area_struct *vma,
+			     struct page *page, unsigned long address)
 {
 	struct vm_area_struct *iter_vma;
 	struct address_space *mapping;

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[2.6 patch] make mm/hugetlb.c:unmap_ref_private() static, Adrian Bunk, (Tue Aug 19, 6:47 am)