mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@denx.de>
To: Sasha Levin <sashal@kernel.org>
Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org,
	Yuli Wang <wangyuli@uniontech.com>,
	Wentao Guan <guanwentao@uniontech.com>,
	Huacai Chen <chenhuacai@loongson.cn>,
	chenhuacai@kernel.org, arnd@arndb.de, tglx@linutronix.de,
	vincenzo.frascino@arm.com, max.kellermann@ionos.com,
	loongarch@lists.linux.dev
Subject: Re: [PATCH AUTOSEL 6.1 2/6] LoongArch: Define a default value for VM_DATA_DEFAULT_FLAGS
Date: Mon, 2 Dec 2024 13:01:56 +0100	[thread overview]
Message-ID: <Z02htM68lfbuxkr/@duo.ucw.cz> (raw)
In-Reply-To: <20241120140722.1769147-2-sashal@kernel.org>

[-- Attachment #1: Type: text/plain, Size: 1697 bytes --]

On Wed 2024-11-20 09:07:08, Sasha Levin wrote:
> From: Yuli Wang <wangyuli@uniontech.com>
> 
> [ 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@uniontech.com>
> Signed-off-by: Yuli Wang <wangyuli@uniontech.com>
> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
> Signed-off-by: Sasha Levin <sashal@kernel.org>
> ---
>  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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

  reply	other threads:[~2024-12-02 12:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-20 14:07 [PATCH AUTOSEL 6.1 1/6] ASoC: audio-graph-card2: Purge absent supplies for device tree nodes Sasha Levin
2024-11-20 14:07 ` [PATCH AUTOSEL 6.1 2/6] LoongArch: Define a default value for VM_DATA_DEFAULT_FLAGS Sasha Levin
2024-12-02 12:01   ` Pavel Machek [this message]
2024-11-20 14:07 ` [PATCH AUTOSEL 6.1 3/6] ALSA: usb-audio: Fix Yamaha P-125 Quirk Entry Sasha Levin
2024-11-20 14:07 ` [PATCH AUTOSEL 6.1 4/6] ARM: 9420/1: smp: Fix SMP for xip kernels Sasha Levin
2024-11-20 14:07 ` [PATCH AUTOSEL 6.1 5/6] ARM: 9434/1: cfi: Fix compilation corner case Sasha Levin
2024-11-20 14:07 ` [PATCH AUTOSEL 6.1 6/6] ipmr: Fix access to mfc_cache_list without lock held Sasha Levin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Z02htM68lfbuxkr/@duo.ucw.cz \
    --to=pavel@denx.de \
    --cc=arnd@arndb.de \
    --cc=chenhuacai@kernel.org \
    --cc=chenhuacai@loongson.cn \
    --cc=guanwentao@uniontech.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=loongarch@lists.linux.dev \
    --cc=max.kellermann@ionos.com \
    --cc=sashal@kernel.org \
    --cc=stable@vger.kernel.org \
    --cc=tglx@linutronix.de \
    --cc=vincenzo.frascino@arm.com \
    --cc=wangyuli@uniontech.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®