[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <175611747090.1420.3132265103580716698.tip-bot2@tip-bot2>
Date: Mon, 25 Aug 2025 10:24:30 -0000
From: "tip-bot2 for Qianfeng Rong" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: Qianfeng Rong <rongqianfeng@...o.com>,
"Peter Zijlstra (Intel)" <peterz@...radead.org>,
Oleg Nesterov <oleg@...hat.com>, x86@...nel.org, linux-kernel@...r.kernel.org
Subject: [tip: perf/core] uprobes: Remove redundant __GFP_NOWARN
The following commit has been merged into the perf/core branch of tip:
Commit-ID: e173287b5d2119971fc329473a020171836d14c9
Gitweb: https://git.kernel.org/tip/e173287b5d2119971fc329473a020171836d14c9
Author: Qianfeng Rong <rongqianfeng@...o.com>
AuthorDate: Tue, 05 Aug 2025 10:50:00 +08:00
Committer: Peter Zijlstra <peterz@...radead.org>
CommitterDate: Thu, 21 Aug 2025 20:09:26 +02:00
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@...o.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@...radead.org>
Acked-by: Oleg Nesterov <oleg@...hat.com>
Link: https://lore.kernel.org/r/20250805025000.346647-1-rongqianfeng@vivo.com
---
kernel/events/uprobes.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/events/uprobes.c b/kernel/events/uprobes.c
index 4a194d7..996a810 100644
--- a/kernel/events/uprobes.c
+++ b/kernel/events/uprobes.c
@@ -1220,7 +1220,7 @@ build_map_info(struct address_space *mapping, loff_t offset, bool is_register)
* reclaim. This is optimistic, no harm done if it fails.
*/
prev = kmalloc(sizeof(struct map_info),
- GFP_NOWAIT | __GFP_NOMEMALLOC | __GFP_NOWARN);
+ GFP_NOWAIT | __GFP_NOMEMALLOC);
if (prev)
prev->next = NULL;
}
Powered by blists - more mailing lists