diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2020-06-12 21:16:22 +1000 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2020-06-18 17:47:16 +1000 |
commit | a05b1c150f5bc0f83313a5e14b94725b5eda5f29 (patch) | |
tree | 7a8118fd4e6dd5111fcfe545fd530734a29cf293 /drivers/crypto/marvell/octeontx/otx_cptpf_ucode.h | |
parent | 864c2d57d691b5308dbb8beca73f8ccb9e183409 (diff) |
crypto: octeontx - Fix sparse warnings
This patch fixes all the sparse warnings in the octeontx driver.
Some of these are just trivial type changes.
However, some of the changes are non-trivial on little-endian hosts.
Obviously the driver appears to be broken on either LE or BE as it
was doing different things. I've taken the BE behaviour as the
correct one.
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/marvell/octeontx/otx_cptpf_ucode.h')
-rw-r--r-- | drivers/crypto/marvell/octeontx/otx_cptpf_ucode.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/marvell/octeontx/otx_cptpf_ucode.h b/drivers/crypto/marvell/octeontx/otx_cptpf_ucode.h index 14f02b60d0c2..8620ac87a447 100644 --- a/drivers/crypto/marvell/octeontx/otx_cptpf_ucode.h +++ b/drivers/crypto/marvell/octeontx/otx_cptpf_ucode.h @@ -74,7 +74,7 @@ struct otx_cpt_ucode_ver_num { struct otx_cpt_ucode_hdr { struct otx_cpt_ucode_ver_num ver_num; u8 ver_str[OTX_CPT_UCODE_VER_STR_SZ]; - u32 code_length; + __be32 code_length; u32 padding[3]; }; |