]> git.baikalelectronics.ru Git - kernel.git/commit
dma-mapping: return an unsigned int from dma_map_sg{,_attrs}
authorChristoph Hellwig <hch@lst.de>
Mon, 9 Aug 2021 15:19:36 +0000 (17:19 +0200)
committerChristoph Hellwig <hch@lst.de>
Sat, 14 Aug 2021 07:18:36 +0000 (09:18 +0200)
commite6c2971a28b7e3c03cf3cc3c6471174c7c434132
treebc3bb16facaa48e0f53e66c609371fae583798fa
parent4b630328ecf788bdb3bdc49095f690c48401ea73
dma-mapping: return an unsigned int from dma_map_sg{,_attrs}

These can only return 0 for failure or the number of entries, so turn
the return value into an unsigned int.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
include/linux/dma-mapping.h
kernel/dma/mapping.c