From: David Gibson Date: Mon, 19 May 2008 06:16:00 +0000 (+1000) Subject: [POWERPC] Fix __set_fixmap() for STRICT_MM_TYPECHECKS X-Git-Tag: v2.6.26-rc4~61^2~3 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=46a7417963a84f67984af1af59d43261159dd96b;p=linux-2.6-omap-h63xx.git [POWERPC] Fix __set_fixmap() for STRICT_MM_TYPECHECKS __set_fixmap() in pgtable_32.c currently fails to compile if STRICT_MM_TYPECHECKS is defined. This fixes it. Signed-off-by: David Gibson Signed-off-by: Paul Mackerras --- diff --git a/arch/powerpc/mm/pgtable_32.c b/arch/powerpc/mm/pgtable_32.c index 80d1babb230..e0ff59f2113 100644 --- a/arch/powerpc/mm/pgtable_32.c +++ b/arch/powerpc/mm/pgtable_32.c @@ -402,7 +402,7 @@ void __set_fixmap (enum fixed_addresses idx, phys_addr_t phys, pgprot_t flags) return; } - map_page(address, phys, flags); + map_page(address, phys, pgprot_val(flags)); fixmaps++; }