Skip to content

Commit 15ffe5e

Browse files
author
Christoph Hellwig
committed
dma-mapping: mark dma_alloc_need_uncached as __always_inline
Without the __always_inline at least i386 configs that have CONFIG_OPTIMIZE_INLINING set seem fail to inline dma_alloc_need_uncached, leading to a linker error because of undefined symbols. Reported-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
1 parent 2ee7a4e commit 15ffe5e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎include/linux/dma-noncoherent.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ static inline bool dev_is_dma_coherent(struct device *dev)
2323
/*
2424
* Check if an allocation needs to be marked uncached to be coherent.
2525
*/
26-
static inline bool dma_alloc_need_uncached(struct device *dev,
26+
static __always_inline bool dma_alloc_need_uncached(struct device *dev,
2727
unsigned long attrs)
2828
{
2929
if (dev_is_dma_coherent(dev))

0 commit comments

Comments
 (0)