From: Kirill A. Shutemov Date: Thu, 28 Jul 2016 22:49:10 +0000 (-0700) Subject: lib/stackdepot.c: use __GFP_NOWARN for stack allocations X-Git-Tag: v4.14-rc1~2792^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=87cc271d5e4320d705cfdf59f68d4d037b3511b2;p=platform%2Fkernel%2Flinux-rpi.git lib/stackdepot.c: use __GFP_NOWARN for stack allocations This (large, atomic) allocation attempt can fail. We expect and handle that, so avoid the scary warning. Link: http://lkml.kernel.org/r/20160720151905.GB19146@node.shutemov.name Cc: Andrey Ryabinin Cc: Alexander Potapenko Cc: Michal Hocko Cc: Rik van Riel Cc: David Rientjes Cc: Mel Gorman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/lib/stackdepot.c b/lib/stackdepot.c index 53ad6c0..60f77f1 100644 --- a/lib/stackdepot.c +++ b/lib/stackdepot.c @@ -242,6 +242,7 @@ depot_stack_handle_t depot_save_stack(struct stack_trace *trace, */ alloc_flags &= ~GFP_ZONEMASK; alloc_flags &= (GFP_ATOMIC | GFP_KERNEL); + alloc_flags |= __GFP_NOWARN; page = alloc_pages(alloc_flags, STACK_ALLOC_ORDER); if (page) prealloc = page_address(page);