dma-mapping: fix return type of dma_set_max_seg_size()
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Wed, 29 Aug 2018 21:29:21 +0000 (23:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Dec 2019 09:41:09 +0000 (10:41 +0100)
commitdafd9e94580c6fdcc27b5750b6d2c1987ca46f5a
tree4b7928e305220d6eac4aadf9910baefbacc5bb7d
parentb67aadca61dad09dfff3291914e4233e0b186602
dma-mapping: fix return type of dma_set_max_seg_size()

[ Upstream commit c9d76d0655c06b8c1f944e46c4fd9e9cf4b331c0 ]

The function dma_set_max_seg_size() can return either 0 on success or
-EIO on error. Change its return type from unsigned int to int to
capture this.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/linux/dma-mapping.h