提交 7a019225 编写于 作者: A Adrian Bunk 提交者: Linus Torvalds

[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: NAdrian Bunk <bunk@stusta.de>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 59db2e6e
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册