2003-09-08 04:42:22

by Zwane Mwaikambo

[permalink] [raw]
Subject: [PATCH][2.6] declare __get_vm_area in vmalloc.h

CC arch/arm/kernel/module.o
arch/arm/kernel/module.c: In function `module_alloc':
arch/arm/kernel/module.c:32: warning: implicit declaration of function `__get_vm_area'
arch/arm/kernel/module.c:32: warning: assignment makes pointer from integer without a cast

Index: linux-2.6.0-test4-mm6-arm/include/linux/vmalloc.h
===================================================================
RCS file: /build/cvsroot/linux-2.6.0-test4-mm6/include/linux/vmalloc.h,v
retrieving revision 1.1.1.1
diff -u -p -B -r1.1.1.1 vmalloc.h
--- linux-2.6.0-test4-mm6-arm/include/linux/vmalloc.h 7 Sep 2003 20:27:52 -0000 1.1.1.1
+++ linux-2.6.0-test4-mm6-arm/include/linux/vmalloc.h 8 Sep 2003 03:43:06 -0000
@@ -35,6 +35,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);