From: Christoph Hellwig Date: Tue, 28 Jan 2025 07:55:33 +0000 (+0100) Subject: nvmet: the result field in nvmet_alloc_ctrl_args is little endian X-Git-Tag: block-6.14-20250207~1^2~3 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=7bf6b497a747b0e28a411beacdd62f1488d0781c;p=linux-block.git nvmet: the result field in nvmet_alloc_ctrl_args is little endian So use the __le32 type for it. Fixes: 6202783184bf ("nvmet: Improve nvmet_alloc_ctrl() interface and implementation") Signed-off-by: Christoph Hellwig Reviewed-by: Sagi Grimberg Signed-off-by: Keith Busch --- diff --git a/drivers/nvme/target/nvmet.h b/drivers/nvme/target/nvmet.h index f4df458df9db..6a9af4e4d732 100644 --- a/drivers/nvme/target/nvmet.h +++ b/drivers/nvme/target/nvmet.h @@ -582,7 +582,7 @@ struct nvmet_alloc_ctrl_args { const struct nvmet_fabrics_ops *ops; struct device *p2p_client; u32 kato; - u32 result; + __le32 result; u16 error_loc; u16 status; };