Skip to content

Commit

Permalink
MIPS: mm: Add back define for PAGE_SHARED
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thomas Bogendoerfer committed Dec 14, 2020
1 parent a8c0f1c commit 41bb1a9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/mips/include/asm/pgtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 | \
Expand Down

0 comments on commit 41bb1a9

Please sign in to comment.