]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit15eea808dbdc5d3dabe452ecc821c9ad7997d365
treeacea919569c3fed31821d423fc4563ce1196ecbb
parent651a67382ec06e7cde693c603316517874e89cfa
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