* [PATCH] swiotlb: Remove redundant __GFP_NOWARN @ 2025-08-05 2:32 ` Qianfeng Rong 2025-08-11 11:30 ` Marek Szyprowski 0 siblings, 1 reply; 2+ messages in thread From: Qianfeng Rong @ 2025-08-05 2:32 UTC (permalink / raw) To: Marek Szyprowski, Robin Murphy, iommu, linux-kernel; +Cc: willy, Qianfeng Rong 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@vivo.com> --- kernel/dma/swiotlb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/dma/swiotlb.c b/kernel/dma/swiotlb.c index abcf3fa63a56..0d37da3d95b6 100644 --- a/kernel/dma/swiotlb.c +++ b/kernel/dma/swiotlb.c @@ -1209,7 +1209,7 @@ static int swiotlb_find_slots(struct device *dev, phys_addr_t orig_addr, nslabs = nr_slots(alloc_size); phys_limit = min_not_zero(*dev->dma_mask, dev->bus_dma_limit); pool = swiotlb_alloc_pool(dev, nslabs, nslabs, 1, phys_limit, - GFP_NOWAIT | __GFP_NOWARN); + GFP_NOWAIT); if (!pool) return -1; -- 2.34.1 ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] swiotlb: Remove redundant __GFP_NOWARN 2025-08-05 2:32 ` [PATCH] swiotlb: Remove redundant __GFP_NOWARN Qianfeng Rong @ 2025-08-11 11:30 ` Marek Szyprowski 0 siblings, 0 replies; 2+ messages in thread From: Marek Szyprowski @ 2025-08-11 11:30 UTC (permalink / raw) To: Qianfeng Rong, Robin Murphy, iommu, linux-kernel; +Cc: willy On 05.08.2025 04:32, Qianfeng Rong wrote: > 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@vivo.com> Thanks, applied to dma-mapping-for-next branch. Best regards -- Marek Szyprowski, PhD Samsung R&D Institute Poland ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-08-11 11:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <CGME20250805023241eucas1p26fcc7632e9f845824f4fb4b98477c654@eucas1p2.samsung.com>
2025-08-05 2:32 ` [PATCH] swiotlb: Remove redundant __GFP_NOWARN Qianfeng Rong
2025-08-11 11:30 ` Marek Szyprowski
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®