Skip to content

Commit 110aa2c

Browse files
qianfengrongmszyprow
authored andcommitted
swiotlb: Remove redundant __GFP_NOWARN
Commit 16f5dfb ("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
1 parent 9f683df commit 110aa2c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/dma/swiotlb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1209,7 +1209,7 @@ static int swiotlb_find_slots(struct device *dev, phys_addr_t orig_addr,
12091209
nslabs = nr_slots(alloc_size);
12101210
phys_limit = min_not_zero(*dev->dma_mask, dev->bus_dma_limit);
12111211
pool = swiotlb_alloc_pool(dev, nslabs, nslabs, 1, phys_limit,
1212-
GFP_NOWAIT | __GFP_NOWARN);
1212+
GFP_NOWAIT);
12131213
if (!pool)
12141214
return -1;
12151215

0 commit comments

Comments
 (0)