Re: [PATCH] selinux: Remove redundant __GFP_NOWARN

From: Paul Moore
Date: Tue Aug 12 2025 - 13:18:24 EST


On Aug 7, 2025 Qianfeng Rong <rongqianfeng@xxxxxxxx> 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@xxxxxxxx>
> Acked-by: Stephen Smalley <stephen.smalley.work@xxxxxxxxx>
> ---
> security/selinux/avc.c | 12 ++++++------
> 1 file changed, 6 insertions(+), 6 deletions(-)

Merged into selinux/dev with some minor tweaks to line wrapping and
horizontal alignment, thanks.

--
paul-moore.com