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.

trace: 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.

Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Link: https://lore.kernel.org/20250805023630.335719-1-rongqianfeng@vivo.com
Signed-off-by: Qianfeng Rong <rongqianfeng@vivo.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>

authored by

Qianfeng Rong and committed by
Steven Rostedt (Google)
81ac6332 b320789d

+1 -1
+1 -1
kernel/trace/trace_events_user.c
··· 496 496 { 497 497 struct user_event_enabler_fault *fault; 498 498 499 - fault = kmem_cache_zalloc(fault_cache, GFP_NOWAIT | __GFP_NOWARN); 499 + fault = kmem_cache_zalloc(fault_cache, GFP_NOWAIT); 500 500 501 501 if (!fault) 502 502 return false;