mm-debug_vm_pgtable-dont-use-__p000-directly.patch removed from -mm tree
The patch titled
Subject: mm: debug_vm_pgtable: don't use __P000 directly
has been removed from the -mm tree. Its filename was
mm-debug_vm_pgtable-dont-use-__p000-directly.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Guo Ren <[email protected]>
Subject: mm: debug_vm_pgtable: don't use __P000 directly
The __Pxxx/__Sxxx macros are only for protection_map[] init. All usage of them in linux should come from protection_map array.
Because a lot of architectures would re-initilize protection_map[] array,
eg: x86-mem_encrypt, m68k-motorola, mips, arm, sparc.
Using __P000 is not rigorous.
Signed-off-by Guo Ren <[email protected]>
Reviewed-by Andrew Morton <[email protected]>
Reviewed-by Anshuman Khandual <[email protected]>
Cc Gavin Shan <[email protected]>
Cc Christophe Leroy <[email protected]>
Cc Gerald Schaefer <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
mm/debug_vm_pgtable.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
mm/debug_vm_pgtable.c renamed from mm/debug_vm_pgtable.c~mm-debug_vm_pgtable-dont-use-__p000-directly +4 -3
@@ -1104,13 +1104,14 @@ static int __init init_args(struct pgtab/* * Initialize the debugging data. * -* __P000 (or even __S000) will help create page table entries with -* PROT_NONE permission as required for pxx_protnone_tests(). +* protection_map[0] (or even protection_map[8]) will help create +* page table entries with PROT_NONE permission as required for +* pxx_protnone_tests(). */ memset (args,0 ,sizeof (*args)); args->vaddr =get_random_vaddr (); args->page_prot =vm_get_page_prot (VMFLAGS ); - args->page_prot_none = __P000; + args->page_prot_none = protection_map[0 ]; args->is_contiguous_page = false; args->pud_pfn =ULONG_MAX ; args->pmd_pfn =ULONG_MAX ;
_
Patches currently in -mm which might be from [email protected] are