Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

swiotlb: 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@vivo.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Link: https://lore.kernel.org/r/20250805023222.332920-1-rongqianfeng@vivo.com

authored by

Qianfeng Rong and committed by
Marek Szyprowski
110aa2c7 9f683dfe

+1 -1
+1 -1
kernel/dma/swiotlb.c
··· 1209 1209 nslabs = nr_slots(alloc_size); 1210 1210 phys_limit = min_not_zero(*dev->dma_mask, dev->bus_dma_limit); 1211 1211 pool = swiotlb_alloc_pool(dev, nslabs, nslabs, 1, phys_limit, 1212 - GFP_NOWAIT | __GFP_NOWARN); 1212 + GFP_NOWAIT); 1213 1213 if (!pool) 1214 1214 return -1; 1215 1215