* [PATCH] MM: Make needlessly global hugetlb_no_page() static.
@ 2007-07-04 7:52 Robert P. J. Day
0 siblings, 0 replies; only message in thread
From: Robert P. J. Day @ 2007-07-04 7:52 UTC (permalink / raw)
To: linux-mm; +Cc: Andrew Morton, Adrian Bunk
Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
---
i'm assuming that, given the following:
$ grep -rw hugetlb_no_page *
mm/hugetlb.c:int hugetlb_no_page(struct mm_struct *mm, struct vm_area_struct *vma,
mm/hugetlb.c: ret = hugetlb_no_page(mm, vma, address, ptep, write_access);
if a routine is both declared and defined in a single translation
unit, and isn't EXPORT_SYMBOLed in some way, that's pretty much the
definition of needlessly global, right?
diff --git a/mm/hugetlb.c b/mm/hugetlb.c
index a45d1f0..6d7abaf 100644
--- a/mm/hugetlb.c
+++ b/mm/hugetlb.c
@@ -474,7 +474,7 @@ static int hugetlb_cow(struct mm_struct *mm, struct vm_area_struct *vma,
return VM_FAULT_MINOR;
}
-int hugetlb_no_page(struct mm_struct *mm, struct vm_area_struct *vma,
+static int hugetlb_no_page(struct mm_struct *mm, struct vm_area_struct *vma,
unsigned long address, pte_t *ptep, int write_access)
{
int ret = VM_FAULT_SIGBUS;
--
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA
http://fsdev.net/wiki/index.php?title=Main_Page
========================================================================
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-07-04 7:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-04 7:52 [PATCH] MM: Make needlessly global hugetlb_no_page() static Robert P. J. Day
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox