drm/linux: fix pgprot_xxx functions
authorFrançois Tigeot <ftigeot@wolfpond.org>
Tue, 6 Nov 2018 17:32:51 +0000 (18:32 +0100)
committerFrançois Tigeot <ftigeot@wolfpond.org>
Tue, 6 Nov 2018 17:32:51 +0000 (18:32 +0100)
sys/dev/drm/include/asm/pgtable.h
sys/dev/drm/include/asm/pgtable_types.h

index 832e4a2..2028106 100644 (file)
@@ -33,7 +33,7 @@
 
 static inline pgprot_t pgprot_noncached(pgprot_t prot)
 {
-       return (prot | _PAGE_CACHE_UC_MINUS);
+       return (prot | VM_MEMATTR_UNCACHEABLE);
 }
 
 #endif /* _ASM_PGTABLE_H_ */
index 1f45169..25cbbb0 100644 (file)
@@ -51,7 +51,7 @@
 static inline pgprot_t
 pgprot_writecombine(pgprot_t prot)
 {
-       return (prot | _PAGE_CACHE_WC);
+       return (prot | VM_MEMATTR_WRITE_COMBINING);
 }
 
 #endif /* _ASM_PGTABLE_TYPES_H_ */