forked from luck/tmp_suning_uos_patched
95906b24fb
Style fixes in arch/um/sys-x86_64: updated copyrights CodingStyle fixes added severities to printks which needed them A bunch of functions in sys-*/ptrace_user.c turn out to be unused, so they and their declarations are gone. Signed-off-by: Jeff Dike <jdike@linux.intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
22 lines
435 B
C
22 lines
435 B
C
#include <linux/vmalloc.h>
|
|
#include <linux/moduleloader.h>
|
|
|
|
/* Copied from i386 arch/i386/kernel/module.c */
|
|
void *module_alloc(unsigned long size)
|
|
{
|
|
if (size == 0)
|
|
return NULL;
|
|
return vmalloc_exec(size);
|
|
}
|
|
|
|
/* Free memory returned from module_alloc */
|
|
void module_free(struct module *mod, void *module_region)
|
|
{
|
|
vfree(module_region);
|
|
/*
|
|
* FIXME: If module_region == mod->init_region, trim exception
|
|
* table entries.
|
|
*/
|
|
}
|
|
|