From: Andreas Larsson <andreas@gaisler.com>
To: Qianfeng Rong <rongqianfeng@vivo.com>,
"David S. Miller" <davem@davemloft.net>,
sparclinux@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] sparc64: Remove redundant __GFP_NOWARN
Date: Fri, 19 Sep 2025 20:02:03 +0200 [thread overview]
Message-ID: <139d8db9-1c70-4e33-9e52-a1437b7a8c87@gaisler.com> (raw)
In-Reply-To: <20250809143303.179922-1-rongqianfeng@vivo.com>
On 2025-08-09 16:33, Qianfeng Rong wrote:
> Commit 16f5dfbc851b ("gfp: include __GFP_NOWARN in GFP_NOWAIT") made
> GFP_NOWAIT implicitly include __GFP_NOWARN.
>
> Therefore, explicit __GFP_NOWARN combined with GFP_NOWAIT (e.g.,
> `GFP_NOWAIT | __GFP_NOWARN`) is now redundant. Let's clean up these
> redundant flags across subsystems.
>
> No functional changes.
>
> Signed-off-by: Qianfeng Rong <rongqianfeng@vivo.com>
> ---
> arch/sparc/kernel/adi_64.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/sparc/kernel/adi_64.c b/arch/sparc/kernel/adi_64.c
> index e0e4fc527b24..18036a43cf56 100644
> --- a/arch/sparc/kernel/adi_64.c
> +++ b/arch/sparc/kernel/adi_64.c
> @@ -202,7 +202,7 @@ static tag_storage_desc_t *alloc_tag_store(struct mm_struct *mm,
>
> } else {
> size = sizeof(tag_storage_desc_t)*max_desc;
> - mm->context.tag_store = kzalloc(size, GFP_NOWAIT|__GFP_NOWARN);
> + mm->context.tag_store = kzalloc(size, GFP_NOWAIT);
> if (mm->context.tag_store == NULL) {
> tag_desc = NULL;
> goto out;
> @@ -281,7 +281,7 @@ static tag_storage_desc_t *alloc_tag_store(struct mm_struct *mm,
> size = (size + (PAGE_SIZE-adi_blksize()))/PAGE_SIZE;
> size = size * PAGE_SIZE;
> }
> - tags = kzalloc(size, GFP_NOWAIT|__GFP_NOWARN);
> + tags = kzalloc(size, GFP_NOWAIT);
> if (tags == NULL) {
> tag_desc->tag_users = 0;
> tag_desc = NULL;
Reviewed-by: Andreas Larsson <andreas@gaisler.com>
Picking this up to my for-next.
Thanks,
Andreas
prev parent reply other threads:[~2025-09-19 18:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-09 14:33 Qianfeng Rong
2025-09-19 18:02 ` Andreas Larsson [this message]
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=139d8db9-1c70-4e33-9e52-a1437b7a8c87@gaisler.com \
--to=andreas@gaisler.com \
--cc=davem@davemloft.net \
--cc=linux-kernel@vger.kernel.org \
--cc=rongqianfeng@vivo.com \
--cc=sparclinux@vger.kernel.org \
/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®