[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAAhV-H4cW3ZhxHULF7BK4j3p2XWMMSeQCQRWV1c-=1=uSY_tKw@mail.gmail.com>
Date: Sat, 2 Nov 2024 14:54:54 +0800
From: Huacai Chen <chenhuacai@...nel.org>
To: WangYuli <wangyuli@...ontech.com>
Cc: kernel@...0n.name, tglx@...utronix.de, max.kellermann@...os.com,
arnd@...db.de, loongarch@...ts.linux.dev, linux-kernel@...r.kernel.org,
guanwentao@...ontech.com, jiaxun.yang@...goat.com, zhanjun@...ontech.com,
anshuman.khandual@....com, akpm@...ux-foundation.org, vbabka@...e.cz,
geert@...ux-m68k.org
Subject: Re: [PATCH] LoongArch: mm/vma: define a default value for VM_DATA_DEFAULT_FLAGS
Queued, thanks.
Huacai
On Sat, Nov 2, 2024 at 1:42 PM WangYuli <wangyuli@...ontech.com> wrote:
>
> Commit c62da0c35d58 ("mm/vma: define a default value for
> VM_DATA_DEFAULT_FLAGS") has unified default values of
> VM_DATA_DEFAULT_FLAGS across different platforms.
>
> Apply the same consistency to LoongArch.
>
> Suggested-by: Wentao Guan <guanwentao@...ontech.com>
> Signed-off-by: WangYuli <wangyuli@...ontech.com>
> ---
> arch/loongarch/include/asm/page.h | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
>
> diff --git a/arch/loongarch/include/asm/page.h b/arch/loongarch/include/asm/page.h
> index e85df33f11c7..8f21567a3188 100644
> --- a/arch/loongarch/include/asm/page.h
> +++ b/arch/loongarch/include/asm/page.h
> @@ -113,10 +113,7 @@ struct page *tlb_virt_to_page(unsigned long kaddr);
> extern int __virt_addr_valid(volatile void *kaddr);
> #define virt_addr_valid(kaddr) __virt_addr_valid((volatile void *)(kaddr))
>
> -#define VM_DATA_DEFAULT_FLAGS \
> - (VM_READ | VM_WRITE | \
> - ((current->personality & READ_IMPLIES_EXEC) ? VM_EXEC : 0) | \
> - VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)
> +#define VM_DATA_DEFAULT_FLAGS VM_DATA_FLAGS_TSK_EXEC
>
> #include <asm-generic/memory_model.h>
> #include <asm-generic/getorder.h>
> --
> 2.45.2
>
Powered by blists - more mailing lists