sparc32: fix build with STRICT_MM_TYPECHECKS
[deliverable/linux.git] / arch / sparc / include / asm / pgtable_32.h
index 91b963a887b781a3b04c0cdc3cfed727ef8e5d73..ce6f56980aefd2902bfae849eb90a993295976eb 100644 (file)
@@ -298,7 +298,7 @@ static inline pte_t mk_pte_io(unsigned long page, pgprot_t pgprot, int space)
 #define pgprot_noncached pgprot_noncached
 static inline pgprot_t pgprot_noncached(pgprot_t prot)
 {
-       prot &= ~__pgprot(SRMMU_CACHE);
+       pgprot_val(prot) &= ~pgprot_val(__pgprot(SRMMU_CACHE));
        return prot;
 }
 
This page took 0.02428 seconds and 5 git commands to generate.