From: Bart Van Assche Date: Fri, 22 Apr 2016 21:13:09 +0000 (-0700) Subject: IB/srp: Document srp_map_data() return value X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=77269cdfcab5f01ebd2095273f4060fbe1001e68;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git IB/srp: Document srp_map_data() return value Signed-off-by: Bart Van Assche Reviewed-by: Sagi Grimberg Cc: Christoph Hellwig Cc: Laurence Oberman Reviewed-by: Christoph Hellwig Signed-off-by: Doug Ledford --- diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c index 8c0827a11ece..269f5ebe82de 100644 --- a/drivers/infiniband/ulp/srp/ib_srp.c +++ b/drivers/infiniband/ulp/srp/ib_srp.c @@ -1534,6 +1534,15 @@ static int srp_map_idb(struct srp_rdma_ch *ch, struct srp_request *req, return 0; } +/** + * srp_map_data() - map SCSI data buffer onto an SRP request + * @scmnd: SCSI command to map + * @ch: SRP RDMA channel + * @req: SRP request + * + * Returns the length in bytes of the SRP_CMD IU or a negative value if + * mapping failed. + */ static int srp_map_data(struct scsi_cmnd *scmnd, struct srp_rdma_ch *ch, struct srp_request *req) {