Skip to contentSkip to conversation

mm/nommu.c: try to fix __vmalloc

PATCH New Adrian Bunk 1 participant 1 message May 13, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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).

Is this patch the correct fix, or do I oversee an underlying problem?

mm/nommu.c renamed from mm/nommu.c.old +1 -1
@@ -146,7 +146,7 @@
 	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