Skip to content

Commit

Permalink
[PATCH] mm/nommu.c: try to fix __vmalloc
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Adrian Bunk authored and Linus Torvalds committed May 17, 2005
1 parent 59db2e6 commit 7a01922
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mm/nommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7a01922

Please sign in to comment.