projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
edba98d
)
nvmet-fc: fix endianess annoations for nvmet_fc_format_rsp_hdr
author
Christoph Hellwig
<hch@lst.de>
Fri, 21 Apr 2017 08:40:22 +0000
(10:40 +0200)
committer
Christoph 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/nvme/target/fc.c
b/drivers/nvme/target/fc.c
index 3626dd8cc8a133c60501ec09a71bbcff382d55b8..d504c52ac9cb9a76f7d224e4448345022f819b70 100644
(file)
--- 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,
u
32 desc_len, u8 rqst_ls_cmd)
+nvmet_fc_format_rsp_hdr(void *buf, u8 ls_cmd,
__be
32 desc_len, u8 rqst_ls_cmd)
{
struct fcnvme_ls_acc_hdr *acc = buf;