Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eb6434d9 authored by Paul Mundt's avatar Paul Mundt
Browse files

nommu: Stub in vm_map_ram()/vm_unmap_ram()/vm_unmap_aliases().



Presently we do not support these interfaces, so make them BUG() wrappers
as per the rest of the vmap interface on nommu. Fixes up the modular xfs
build.

Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent f686359e
Loading
Loading
Loading
Loading
+19 −1
Original line number Original line Diff line number Diff line
@@ -10,7 +10,7 @@
 *  Copyright (c) 2000-2003 David McCullough <davidm@snapgear.com>
 *  Copyright (c) 2000-2003 David McCullough <davidm@snapgear.com>
 *  Copyright (c) 2000-2001 D Jeff Dionne <jeff@uClinux.org>
 *  Copyright (c) 2000-2001 D Jeff Dionne <jeff@uClinux.org>
 *  Copyright (c) 2002      Greg Ungerer <gerg@snapgear.com>
 *  Copyright (c) 2002      Greg Ungerer <gerg@snapgear.com>
 *  Copyright (c) 2007-2008 Paul Mundt <lethal@linux-sh.org>
 *  Copyright (c) 2007-2009 Paul Mundt <lethal@linux-sh.org>
 */
 */


#include <linux/module.h>
#include <linux/module.h>
@@ -394,6 +394,24 @@ void vunmap(const void *addr)
}
}
EXPORT_SYMBOL(vunmap);
EXPORT_SYMBOL(vunmap);


void *vm_map_ram(struct page **pages, unsigned int count, int node, pgprot_t prot)
{
	BUG();
	return NULL;
}
EXPORT_SYMBOL(vm_map_ram);

void vm_unmap_ram(const void *mem, unsigned int count)
{
	BUG();
}
EXPORT_SYMBOL(vm_unmap_ram);

void vm_unmap_aliases(void)
{
}
EXPORT_SYMBOL_GPL(vm_unmap_aliases);

/*
/*
 * Implement a stub for vmalloc_sync_all() if the architecture chose not to
 * Implement a stub for vmalloc_sync_all() if the architecture chose not to
 * have one.
 * have one.