From: Christoph Hellwig Date: Fri, 21 Apr 2017 08:40:22 +0000 (+0200) Subject: nvmet-fc: fix endianess annoations for nvmet_fc_format_rsp_hdr X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3f5e118848118d132b1dabdbb9687ea140756c1e;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git nvmet-fc: fix endianess annoations for nvmet_fc_format_rsp_hdr The passed in desc_len is a big endian value, so mark it as such. Found by sparse. Signed-off-by: Christoph Hellwig Reviewed-by: James Smart Reviewed-by: Johannes Thumshirn --- diff --git a/drivers/nvme/target/fc.c b/drivers/nvme/target/fc.c index 3626dd8cc8a1..d504c52ac9cb 100644 --- a/drivers/nvme/target/fc.c +++ b/drivers/nvme/target/fc.c @@ -1058,7 +1058,7 @@ EXPORT_SYMBOL_GPL(nvmet_fc_unregister_targetport); static void -nvmet_fc_format_rsp_hdr(void *buf, u8 ls_cmd, u32 desc_len, u8 rqst_ls_cmd) +nvmet_fc_format_rsp_hdr(void *buf, u8 ls_cmd, __be32 desc_len, u8 rqst_ls_cmd) { struct fcnvme_ls_acc_hdr *acc = buf;