2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-11-19 16:14:13 +08:00

[PATCH] mm/nommu.c: try to fix __vmalloc

Linus changed the second argument of __vmalloc from int to unsigned int
breaking the compilation for CONFIG_MMU=n configurations (since he only
changed vmalloc.c but not nommu.c).

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Adrian Bunk 2005-05-16 21:53:37 -07:00 committed by Linus Torvalds
parent 59db2e6ed0
commit 7a019225c7

View File

@ -150,7 +150,8 @@ void vfree(void *addr)
kfree(addr);
}
void *__vmalloc(unsigned long size, int gfp_mask, pgprot_t prot)
void *__vmalloc(unsigned long size, unsigned int __nocast gfp_mask,
pgprot_t prot)
{
/*
* kmalloc doesn't like __GFP_HIGHMEM for some reason