nvmet-fc: fix endianess annoations for nvmet_fc_format_rsp_hdr
authorChristoph Hellwig <hch@lst.de>
Fri, 21 Apr 2017 08:40:22 +0000 (10:40 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 24 Apr 2017 07:18:24 +0000 (09:18 +0200)
The passed in desc_len is a big endian value, so mark it as such.

Found by sparse.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: James Smart <james.smart@broadcom.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
drivers/nvme/target/fc.c

index 3626dd8cc8a133c60501ec09a71bbcff382d55b8..d504c52ac9cb9a76f7d224e4448345022f819b70 100644 (file)
@@ -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;