summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNicolas Pitre <nico@cam.org>2004-06-28 00:31:48 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-06-28 00:31:48 -0700
commit34c8c09878c341f1f10216fdeb985d3244bf2f31 (patch)
tree0f6e4d41e48f4b59e21bf0ae5548f6a2027cdd06 /include
parenta059a16dfa477877c5f323a6afcedee4c9d9fa92 (diff)
[PATCH] move prototype for __get_vm_area() to a sane location
There are currently two files besides mm/vmalloc.c that make use of that function: - arch/sh/kernel/cpu/sh4/sq.c which defined its own prototype locally risking not being in sync with the real function, and - arch/arm/kernel/module.c which has no prototype at all and cause build warnings. This fixes those issues
Diffstat (limited to 'include')
-rw-r--r--include/linux/vmalloc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/vmalloc.h b/include/linux/vmalloc.h
index bad993c16531..8c68717810c3 100644
--- a/include/linux/vmalloc.h
+++ b/include/linux/vmalloc.h
@@ -36,6 +36,8 @@ extern void vunmap(void *addr);
* Lowlevel-APIs (not for driver use!)
*/
extern struct vm_struct *get_vm_area(unsigned long size, unsigned long flags);
+extern struct vm_struct *__get_vm_area(unsigned long size, unsigned long flags,
+ unsigned long start, unsigned long end);
extern struct vm_struct *remove_vm_area(void *addr);
extern int map_vm_area(struct vm_struct *area, pgprot_t prot,
struct page ***pages);