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 <rongqianf...@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 7ca1940607bd..5d12b9fdc917 100644
--- a/kernel/events/uprobes.c
+++ b/kernel/events/uprobes.c
@@ -1210,7 +1210,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;
                }
-- 
2.34.1


Reply via email to