Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

uprobes: Remove redundant __GFP_NOWARN

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>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Oleg Nesterov <oleg@redhat.com>
Link: https://lore.kernel.org/r/20250805025000.346647-1-rongqianfeng@vivo.com

authored by

Qianfeng Rong and committed by
Peter Zijlstra
e173287b 9ffc7a63

+1 -1
+1 -1
kernel/events/uprobes.c
··· 1220 1220 * reclaim. This is optimistic, no harm done if it fails. 1221 1221 */ 1222 1222 prev = kmalloc(sizeof(struct map_info), 1223 - GFP_NOWAIT | __GFP_NOMEMALLOC | __GFP_NOWARN); 1223 + GFP_NOWAIT | __GFP_NOMEMALLOC); 1224 1224 if (prev) 1225 1225 prev->next = NULL; 1226 1226 }