dma-mapping: mark dma_alloc_need_uncached as __always_inline
authorChristoph Hellwig <hch@lst.de>
Mon, 8 Jul 2019 19:55:27 +0000 (12:55 -0700)
committerChristoph Hellwig <hch@lst.de>
Mon, 8 Jul 2019 21:19:33 +0000 (14:19 -0700)
commit15ffe5e1acf5fe1512e98b20702e46ce9f25e2f7
treeacea919569c3fed31821d423fc4563ce1196ecbb
parent2ee7a4ef98e309a1f496be2b0bf9307b5a7a31e5
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
include/linux/dma-noncoherent.h