Skip to content

Commit

Permalink
Merge branch 'nommu-fixes-for-linus' of git://git.kernel.org/pub/scm/…
Browse files Browse the repository at this point in the history
…linux/kernel/git/lethal/nommu-2.6

* 'nommu-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lethal/nommu-2.6:
  nommu: Provide stubbed alloc/free_vm_area() implementation.
  nommu: Fix up vmalloc_node() symbol export regression.
  • Loading branch information
Linus Torvalds committed Dec 27, 2010
2 parents c816d7c + 29c185e commit ffc96d6
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion mm/nommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Copyright (c) 2000-2003 David McCullough <davidm@snapgear.com>
* Copyright (c) 2000-2001 D Jeff Dionne <jeff@uClinux.org>
* Copyright (c) 2002 Greg Ungerer <gerg@snapgear.com>
* Copyright (c) 2007-2009 Paul Mundt <lethal@linux-sh.org>
* Copyright (c) 2007-2010 Paul Mundt <lethal@linux-sh.org>
*/

#include <linux/module.h>
Expand Down Expand Up @@ -328,6 +328,7 @@ void *vmalloc_node(unsigned long size, int node)
{
return vmalloc(size);
}
EXPORT_SYMBOL(vmalloc_node);

/**
* vzalloc_node - allocate memory on a specific node with zero fill
Expand Down Expand Up @@ -440,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)
{
Expand Down

0 comments on commit ffc96d6

Please sign in to comment.