]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
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)
committerMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
Fri, 17 Jan 2020 17:22:14 +0000 (14:22 -0300)
commit1f0c6b57300a68c37bd530efc3056db3e57c93b9
tree3377a148b6327ca1b8aa10bd1d8ec2b2920a3a0b
parentb8050552440e89fd647aae8196cd483688639126
dma-mapping: fix return type of dma_set_max_seg_size()

BugLink: https://bugs.launchpad.net/bugs/1857158
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
include/linux/dma-mapping.h