From 6bccc57298f923b3dbef67cf5e4608d3e6431d1b Mon Sep 17 00:00:00 2001 From: Paul Mundt Date: Fri, 24 Dec 2010 12:08:30 +0900 Subject: [PATCH] --- yaml --- r: 223675 b: refs/heads/master c: 29c185e5c681ca00d863d161eda7eadb93e32ee5 h: refs/heads/master i: 223673: e77f924a9e5910ccfa27a1f932ab623922b979ba 223671: 4a094f8fe4cb3744172acb132377b2ac387c279b v: v3 --- [refs] | 2 +- trunk/mm/nommu.c | 27 ++++++++++++++++++++++++++- 2 files changed, 27 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index a93a908b08eb..01e9460f5184 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 9a14f653dfe349c0916e6a78c413effa2fa3f001 +refs/heads/master: 29c185e5c681ca00d863d161eda7eadb93e32ee5 diff --git a/trunk/mm/nommu.c b/trunk/mm/nommu.c index 275608cd18a3..ef4045d010d5 100644 --- a/trunk/mm/nommu.c +++ b/trunk/mm/nommu.c @@ -10,7 +10,7 @@ * Copyright (c) 2000-2003 David McCullough * Copyright (c) 2000-2001 D Jeff Dionne * Copyright (c) 2002 Greg Ungerer - * Copyright (c) 2007-2009 Paul Mundt + * Copyright (c) 2007-2010 Paul Mundt */ #include @@ -441,6 +441,31 @@ void __attribute__((weak)) vmalloc_sync_all(void) { } +/** + * alloc_vm_area - allocate a range of kernel address space + * @size: size of the area + * + * Returns: NULL on failure, vm_struct on success + * + * This function reserves a range of kernel address space, and + * allocates pagetables to map that range. No actual mappings + * are created. If the kernel address space is not shared + * between processes, it syncs the pagetable across all + * processes. + */ +struct vm_struct *alloc_vm_area(size_t size) +{ + BUG(); + return NULL; +} +EXPORT_SYMBOL_GPL(alloc_vm_area); + +void free_vm_area(struct vm_struct *area) +{ + BUG(); +} +EXPORT_SYMBOL_GPL(free_vm_area); + int vm_insert_page(struct vm_area_struct *vma, unsigned long addr, struct page *page) {