Skip to content

Commit 81ac633

Browse files
qianfengrongrostedt
authored andcommitted
trace: Remove redundant __GFP_NOWARN
Commit 16f5dfb ("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 <[email protected]> Cc: Mathieu Desnoyers <[email protected]> Link: https://lore.kernel.org/[email protected] Signed-off-by: Qianfeng Rong <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
1 parent b320789 commit 81ac633

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/trace/trace_events_user.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ static bool user_event_enabler_queue_fault(struct user_event_mm *mm,
496496
{
497497
struct user_event_enabler_fault *fault;
498498

499-
fault = kmem_cache_zalloc(fault_cache, GFP_NOWAIT | __GFP_NOWARN);
499+
fault = kmem_cache_zalloc(fault_cache, GFP_NOWAIT);
500500

501501
if (!fault)
502502
return false;

0 commit comments

Comments
 (0)