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)
commit2a047e0662aee1bd773e0415accd785ad26a9398
treebc3bb16facaa48e0f53e66c609371fae583798fa
parentd03c54419274f96434e2ad74e59e67ec6d54ca86
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