powerpc/mm: properly set PAGE_KERNEL flags in ioremap()
[sfrench/cifs-2.6.git] / arch / powerpc / include / asm / nohash / pgtable.h
index b321c82b3624726eb479453911642a87d7687f38..5b82e44c4231fbed75d284789538dd893768ec8a 100644 (file)
@@ -197,6 +197,8 @@ extern int ptep_set_access_flags(struct vm_area_struct *vma, unsigned long addre
 #if _PAGE_WRITETHRU != 0
 #define pgprot_cached_wthru(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \
                                            _PAGE_COHERENT | _PAGE_WRITETHRU))
+#else
+#define pgprot_cached_wthru(prot)      pgprot_noncached(prot)
 #endif
 
 #define pgprot_cached_noncoherent(prot) \