Skip to contentSkip to conversation

Fix __set_fixmap() for STRICT_MM_TYPECHECKS

PATCH David Gibson 1 participant 1 message May 19, 2008 PowerPC

lore
Share & tools
lore
#0 lore raw

__set_fixmap() in pgtable_32.c currently fails to compile if STRICT_MM_TYPECHECKS is defined. This patch fixes it.

arch/powerpc/mm/pgtable_32.c +1 -1
Index: working-2.6/arch/powerpc/mm/pgtable_32.c
===================================================================
@@ -402,7 +402,7 @@ void __set_fixmap (enum fixed_addresses 
 		return;
 	}
 
-	map_page(address, phys, flags);
+	map_page(address, phys, pgprot_val(flags));
 	fixmaps++;
 }
 
Signature · 4 lines
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson