From: Jani Nikula <jani.nikula@linux.intel.com>
To: Qianfeng Rong <rongqianfeng@vivo.com>,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>,
Thomas Zimmermann <tzimmermann@suse.de>,
David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,
"open list:DRM DRIVERS" <dri-devel@lists.freedesktop.org>,
open list <linux-kernel@vger.kernel.org>
Cc: willy@infradead.org, Qianfeng Rong <rongqianfeng@vivo.com>
Subject: Re: [PATCH v2 1/2] drm/locking: remove redundant __GFP_NOWARN
Date: Thu, 07 Aug 2025 21:07:59 +0300 [thread overview]
Message-ID: <2a0a178a0929dc76cd88ec840d52043cd367451d@intel.com> (raw)
In-Reply-To: <20250807143919.575439-2-rongqianfeng@vivo.com>
On Thu, 07 Aug 2025, Qianfeng Rong <rongqianfeng@vivo.com> wrote:
> GFP_NOWAIT already includes __GFP_NOWARN, so let's remove the redundant
> __GFP_NOWARN.
>
> Signed-off-by: Qianfeng Rong <rongqianfeng@vivo.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
> ---
> drivers/gpu/drm/drm_modeset_lock.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/drm_modeset_lock.c b/drivers/gpu/drm/drm_modeset_lock.c
> index beb91a13a312..58eac20a8138 100644
> --- a/drivers/gpu/drm/drm_modeset_lock.c
> +++ b/drivers/gpu/drm/drm_modeset_lock.c
> @@ -88,7 +88,7 @@ static noinline depot_stack_handle_t __drm_stack_depot_save(void)
>
> n = stack_trace_save(entries, ARRAY_SIZE(entries), 1);
>
> - return stack_depot_save(entries, n, GFP_NOWAIT | __GFP_NOWARN);
> + return stack_depot_save(entries, n, GFP_NOWAIT);
> }
>
> static void __drm_stack_depot_print(depot_stack_handle_t stack_depot)
> @@ -98,7 +98,7 @@ static void __drm_stack_depot_print(depot_stack_handle_t stack_depot)
> unsigned int nr_entries;
> char *buf;
>
> - buf = kmalloc(PAGE_SIZE, GFP_NOWAIT | __GFP_NOWARN);
> + buf = kmalloc(PAGE_SIZE, GFP_NOWAIT);
> if (!buf)
> return;
--
Jani Nikula, Intel
next prev parent reply other threads:[~2025-08-07 18:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-07 14:39 [PATCH v2 0/2] drm: " Qianfeng Rong
2025-08-07 14:39 ` [PATCH v2 1/2] drm/locking: " Qianfeng Rong
2025-08-07 18:07 ` Jani Nikula [this message]
2025-08-07 14:39 ` [PATCH v2 2/2] drm/i915: " Qianfeng Rong
2025-08-07 18:07 ` Jani Nikula
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=2a0a178a0929dc76cd88ec840d52043cd367451d@intel.com \
--to=jani.nikula@linux.intel.com \
--cc=airlied@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=rongqianfeng@vivo.com \
--cc=simona@ffwll.ch \
--cc=tzimmermann@suse.de \
--cc=willy@infradead.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®