From: François Tigeot Date: Tue, 6 Nov 2018 17:32:51 +0000 (+0100) Subject: drm/linux: fix pgprot_xxx functions X-Git-Tag: v5.5.0~52 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/c5cb444a188f6b4bc890e750a7351696ead5d008 drm/linux: fix pgprot_xxx functions --- diff --git a/sys/dev/drm/include/asm/pgtable.h b/sys/dev/drm/include/asm/pgtable.h index 832e4a2028..20281060c0 100644 --- a/sys/dev/drm/include/asm/pgtable.h +++ b/sys/dev/drm/include/asm/pgtable.h @@ -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_ */ diff --git a/sys/dev/drm/include/asm/pgtable_types.h b/sys/dev/drm/include/asm/pgtable_types.h index 1f45169900..25cbbb0c8b 100644 --- a/sys/dev/drm/include/asm/pgtable_types.h +++ b/sys/dev/drm/include/asm/pgtable_types.h @@ -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_ */