summaryrefslogtreecommitdiff
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
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
-rw-r--r--arch/sh/kernel/cpu/sh4/sq.c2
-rw-r--r--include/linux/vmalloc.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/sh/kernel/cpu/sh4/sq.c b/arch/sh/kernel/cpu/sh4/sq.c
index 7a0eb521ee7f..3dfe1741d10c 100644
--- a/arch/sh/kernel/cpu/sh4/sq.c
+++ b/arch/sh/kernel/cpu/sh4/sq.c
@@ -34,8 +34,6 @@
static LIST_HEAD(sq_mapping_list);
static spinlock_t sq_mapping_lock = SPIN_LOCK_UNLOCKED;
-extern struct vm_struct *__get_vm_area(unsigned long size, unsigned long flags, unsigned long start, unsigned long end);
-
/**
* sq_flush - Flush (prefetch) the store queue cache
*
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);