All of lore.kernel.org
 help / color / mirror / Atom feed
* + xtensa-mm-enable-arch_has_vm_get_page_prot-fix.patch added to mm-unstable branch
@ 2022-07-05 22:26 Andrew Morton
  0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2022-07-05 22:26 UTC (permalink / raw)
  To: mm-commits, guoren, chris, anshuman.khandual, jcmvbkbc, akpm


The patch titled
     Subject: xtensa: noMMU: fix vm_get_page_prot definition
has been added to the -mm mm-unstable branch.  Its filename is
     xtensa-mm-enable-arch_has_vm_get_page_prot-fix.patch

This patch will shortly appear at
     https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/xtensa-mm-enable-arch_has_vm_get_page_prot-fix.patch

This patch will later appear in the mm-unstable branch at
    git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next via the mm-everything
branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there every 2-3 working days

------------------------------------------------------
From: Max Filippov <jcmvbkbc@gmail.com>
Subject: xtensa: noMMU: fix vm_get_page_prot definition
Date: Tue, 5 Jul 2022 15:14:11 -0700

Don't define protection_map and don't use DECLARE_VM_GET_PAGE_PROT in
noMMU configs, because in that case the definition for vm_get_page_prot is
provided by the include/linux/mm.h

Link: https://lkml.kernel.org/r/20220705221411.3381797-1-jcmvbkbc@gmail.com
Fixes: 61ab8053710f ("xtensa/mm: enable ARCH_HAS_VM_GET_PAGE_PROT")
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Cc: Anshuman Khandual <anshuman.khandual@arm.com>
Cc: Chris Zankel <chris@zankel.net>
Cc: Guo Ren <guoren@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 arch/xtensa/mm/init.c |    2 ++
 1 file changed, 2 insertions(+)

--- a/arch/xtensa/mm/init.c~xtensa-mm-enable-arch_has_vm_get_page_prot-fix
+++ a/arch/xtensa/mm/init.c
@@ -217,6 +217,7 @@ static int __init parse_memmap_opt(char
 }
 early_param("memmap", parse_memmap_opt);
 
+#ifdef CONFIG_MMU
 static const pgprot_t protection_map[16] = {
 	[VM_NONE]					= PAGE_NONE,
 	[VM_READ]					= PAGE_READONLY,
@@ -236,3 +237,4 @@ static const pgprot_t protection_map[16]
 	[VM_SHARED | VM_EXEC | VM_WRITE | VM_READ]	= PAGE_SHARED_EXEC
 };
 DECLARE_VM_GET_PAGE_PROT
+#endif
_

Patches currently in -mm which might be from jcmvbkbc@gmail.com are

xtensa-mm-enable-arch_has_vm_get_page_prot-fix.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-07-05 22:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-05 22:26 + xtensa-mm-enable-arch_has_vm_get_page_prot-fix.patch added to mm-unstable branch Andrew Morton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.