Re: [PATCH AUTOSEL 6.1 2/6] LoongArch: Define a default value for VM_DATA_DEFAULT_FLAGS
From: Pavel Machek
Date: Mon Dec 02 2024 - 07:44:49 EST
On Wed 2024-11-20 09:07:08, Sasha Levin wrote:
> From: Yuli Wang <wangyuli@xxxxxxxxxxxxx>
>
> [ Upstream commit c859900a841b0a6cd9a73d16426465e44cdde29c ]
>
> This is a trivial cleanup, commit c62da0c35d58518d ("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.
Cleanup, do we need it in -stable?
BR,
Pavel
> Suggested-by: Wentao Guan <guanwentao@xxxxxxxxxxxxx>
> Signed-off-by: Yuli Wang <wangyuli@xxxxxxxxxxxxx>
> Signed-off-by: Huacai Chen <chenhuacai@xxxxxxxxxxx>
> Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>
> ---
> 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 bbac81dd73788..9919253804e61 100644
> --- a/arch/loongarch/include/asm/page.h
> +++ b/arch/loongarch/include/asm/page.h
> @@ -102,10 +102,7 @@ static inline int pfn_valid(unsigned long pfn)
> 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>
--
DENX Software Engineering GmbH, Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Attachment:
signature.asc
Description: PGP signature