Thread (52 messages) 52 messages, 6 authors, 2022-06-27

Re: [PATCH V4 02/26] mm/mmap: Define DECLARE_VM_GET_PAGE_PROT

From: Anshuman Khandual <hidden>
Date: 2022-06-24 06:11:47
Also in: linux-alpha, linux-arm-kernel, linux-m68k, linux-mips, linux-mm, linux-riscv, linux-s390, linux-sh, linux-um, lkml, sparclinux


On 6/24/22 10:58, Christophe Leroy wrote:
Le 24/06/2022 à 06:43, Anshuman Khandual a écrit :
quoted
This just converts the generic vm_get_page_prot() implementation into a new
macro i.e DECLARE_VM_GET_PAGE_PROT which later can be used across platforms
when enabling them with ARCH_HAS_VM_GET_PAGE_PROT. This does not create any
functional change.

Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-mm@kvack.org
Cc: linux-kernel@vger.kernel.org
Suggested-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Anshuman Khandual <redacted>
---
  include/linux/mm.h | 8 ++++++++
  mm/mmap.c          | 6 +-----
  2 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/include/linux/mm.h b/include/linux/mm.h
index 47bfe038d46e..237828c2bae2 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -428,6 +428,14 @@ extern unsigned int kobjsize(const void *objp);
  extern pgprot_t protection_map[16];
  #endif
  
I think the comment above protection_map[16] in mm/mmap.c should be 
moved here.
Sure, makes sense. Will move.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help