* [2.6 patch] mm/nommu.c: try to fix __vmalloc
@ 2005-05-13 13:56 Adrian Bunk
0 siblings, 0 replies; only message in thread
From: Adrian Bunk @ 2005-05-13 13:56 UTC (permalink / raw)
To: Andrew Morton, Linus Torvalds; +Cc: linux-kernel
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?
Signed-off-by: Adrian Bunk <bunk@stusta.de>
--- linux-2.6.12-rc4-mm1/mm/nommu.c.old 2005-05-13 06:51:33.000000000 +0200
+++ linux-2.6.12-rc4-mm1/mm/nommu.c 2005-05-13 06:55:33.000000000 +0200
@@ -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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-05-13 13:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-13 13:56 [2.6 patch] mm/nommu.c: try to fix __vmalloc Adrian Bunk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®