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
This commit is contained in:
parent
2ee7a4ef98
commit
15ffe5e1ac
|
@ -23,7 +23,7 @@ static inline bool dev_is_dma_coherent(struct device *dev)
|
||||||
/*
|
/*
|
||||||
* Check if an allocation needs to be marked uncached to be coherent.
|
* Check if an allocation needs to be marked uncached to be coherent.
|
||||||
*/
|
*/
|
||||||
static inline bool dma_alloc_need_uncached(struct device *dev,
|
static __always_inline bool dma_alloc_need_uncached(struct device *dev,
|
||||||
unsigned long attrs)
|
unsigned long attrs)
|
||||||
{
|
{
|
||||||
if (dev_is_dma_coherent(dev))
|
if (dev_is_dma_coherent(dev))
|
||||||
|
|
Loading…
Reference in New Issue