summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bogendoerfer <tsbogend@alpha.franken.de>2020-11-27 10:16:03 +0100
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2020-12-14 16:17:36 +0100
commit41bb1a9b85dd613787a54414a1ae7d4181b9de5d (patch)
tree98b07b34a4d27c4e1352d82784008c9b8abfb399
parenta8c0f1c634507a36ef87a23cfd93720f6142ad9a (diff)
MIPS: mm: Add back define for PAGE_SHARED
There are still some drivers using PAGE_SHARED constant so put it back. Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
-rw-r--r--arch/mips/include/asm/pgtable.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/include/asm/pgtable.h b/arch/mips/include/asm/pgtable.h
index 158ba3aa3bf1..4f9c37616d42 100644
--- a/arch/mips/include/asm/pgtable.h
+++ b/arch/mips/include/asm/pgtable.h
@@ -25,6 +25,8 @@
struct mm_struct;
struct vm_area_struct;
+#define PAGE_SHARED vm_get_page_prot(VM_READ|VM_WRITE|VM_SHARED)
+
#define PAGE_KERNEL __pgprot(_PAGE_PRESENT | __READABLE | __WRITEABLE | \
_PAGE_GLOBAL | _page_cachable_default)
#define PAGE_KERNEL_NC __pgprot(_PAGE_PRESENT | __READABLE | __WRITEABLE | \