[linux-nvme:nvme-5.17 1/2] drivers/nvme/host/tcp.c:920:25: sparse: sparse: incorrect type in argument 2 (different base types)

Christoph Hellwig hch at lst.de
Wed Feb 9 05:51:27 PST 2022


I've folded this fix in:

diff --git a/drivers/nvme/host/tcp.c b/drivers/nvme/host/tcp.c
index 1096a0b0a268f..891a36d02e7c7 100644
--- a/drivers/nvme/host/tcp.c
+++ b/drivers/nvme/host/tcp.c
@@ -917,7 +917,7 @@ static void nvme_tcp_fail_request(struct nvme_tcp_request *req)
 		union nvme_result res = {};
 
 		nvme_complete_async_event(&req->queue->ctrl->ctrl,
-			NVME_SC_HOST_PATH_ERROR, &res);
+				cpu_to_le16(NVME_SC_HOST_PATH_ERROR), &res);
 	} else {
 		nvme_tcp_end_request(blk_mq_rq_from_pdu(req),
 				NVME_SC_HOST_PATH_ERROR);



More information about the Linux-nvme mailing list