From c5cb444a188f6b4bc890e750a7351696ead5d008 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fran=C3=A7ois=20Tigeot?= Date: Tue, 6 Nov 2018 18:32:51 +0100 Subject: [PATCH] drm/linux: fix pgprot_xxx functions --- sys/dev/drm/include/asm/pgtable.h | 2 +- sys/dev/drm/include/asm/pgtable_types.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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_ */ -- 2.41.0