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

Configure Feed

Select the types of activity you want to include in your feed.

dma-mapping: fix flags in dma_alloc_wc

We really need the writecombine flag in dma_alloc_wc, fix a stupid
oversight.

Fixes: 7ed1d91a9e ("dma-mapping: translate __GFP_NOFAIL to DMA_ATTR_NO_WARN")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Christoph Hellwig and committed by
Linus Torvalds
0cd60eb1 23203e3f

+1 -1
+1 -1
include/linux/dma-mapping.h
··· 796 796 static inline void *dma_alloc_wc(struct device *dev, size_t size, 797 797 dma_addr_t *dma_addr, gfp_t gfp) 798 798 { 799 - unsigned long attrs = DMA_ATTR_NO_WARN; 799 + unsigned long attrs = DMA_ATTR_WRITE_COMBINE; 800 800 801 801 if (gfp & __GFP_NOWARN) 802 802 attrs |= DMA_ATTR_NO_WARN;