mirror of
https://github.com/torvalds/linux
synced 2024-09-06 18:01:05 +00:00
mm: debug_vm_pgtable: use VM_ACCESS_FLAGS
Directly use VM_ACCESS_FLAGS instead VMFLAGS. Link: https://lkml.kernel.org/r/20221019034945.93081-5-wangkefeng.wang@huawei.com Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com> Cc: Alex Deucher <alexander.deucher@amd.com> Cc: "Christian König" <christian.koenig@amd.com> Cc: Daniel Vetter <daniel@ffwll.ch> Cc: Dave Hansen <dave.hansen@linux.intel.com> Cc: David Airlie <airlied@gmail.com> Cc: Dinh Nguyen <dinguyen@kernel.org> Cc: Jarkko Sakkinen <jarkko@kernel.org> Cc: "Pan, Xinhui" <Xinhui.Pan@amd.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
e39ee675f4
commit
d7e679b6f9
|
@ -38,11 +38,7 @@
|
|||
* Please refer Documentation/mm/arch_pgtable_helpers.rst for the semantics
|
||||
* expectations that are being validated here. All future changes in here
|
||||
* or the documentation need to be in sync.
|
||||
*/
|
||||
|
||||
#define VMFLAGS (VM_READ|VM_WRITE|VM_EXEC)
|
||||
|
||||
/*
|
||||
*
|
||||
* On s390 platform, the lower 4 bits are used to identify given page table
|
||||
* entry type. But these bits might affect the ability to clear entries with
|
||||
* pxx_clear() because of how dynamic page table folding works on s390. So
|
||||
|
@ -1125,7 +1121,7 @@ static int __init init_args(struct pgtable_debug_args *args)
|
|||
*/
|
||||
memset(args, 0, sizeof(*args));
|
||||
args->vaddr = get_random_vaddr();
|
||||
args->page_prot = vm_get_page_prot(VMFLAGS);
|
||||
args->page_prot = vm_get_page_prot(VM_ACCESS_FLAGS);
|
||||
args->page_prot_none = vm_get_page_prot(VM_NONE);
|
||||
args->is_contiguous_page = false;
|
||||
args->pud_pfn = ULONG_MAX;
|
||||
|
|
Loading…
Reference in a new issue