]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
scsi: hisi_sas: make return type of prep functions void
authorXiang Chen <chenxiang66@hisilicon.com>
Wed, 9 May 2018 15:10:46 +0000 (23:10 +0800)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 6 Jun 2018 19:13:20 +0000 (15:13 -0400)
commit81d115ec9fef304ff83fa0d31dcd43b70fc4c70e
tree84fa7909968f77ad6b87190925d933cf55a6207f
parent8118ae070e18995090f60421bfd03cd64eab2ba6
scsi: hisi_sas: make return type of prep functions void

BugLink: https://bugs.launchpad.net/bugs/1774472
Since the task prep functions now should not fail, adjust the return
types to void.

In addition, some checks in the task prep functions are relocated to the
main module; this is specifically the check for the number of elements
in an sg list exceeded the HW SGE limit.

Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
(cherry picked from commit a2b3820bddfbffcfbf0e8170e77de65d8b8def98 linux-next)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/scsi/hisi_sas/hisi_sas.h
drivers/scsi/hisi_sas/hisi_sas_main.c
drivers/scsi/hisi_sas/hisi_sas_v1_hw.c
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c