Skip to content

Commit

Permalink
crypto: ccree - use a proper le32 type for le32 val
Browse files Browse the repository at this point in the history
We build an explicit little endian value from the IDR register
values. Use a proper le32 type to mark the var as such to
satisfy Sparse.

Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Reported-by: kbuild test robot <lkp@intel.com>
Fixes: dcf6285 ("crypto: ccree - add CID and PID support")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
  • Loading branch information
Gilad Ben-Yossef authored and Herbert Xu committed May 3, 2019
1 parent 50af327 commit e59f755
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/crypto/ccree/cc_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ static u32 cc_read_idr(struct cc_drvdata *drvdata, const u32 *idr_offsets)
int i;
union {
u8 regs[CC_NUM_IDRS];
u32 val;
__le32 val;
} idr;

for (i = 0; i < CC_NUM_IDRS; ++i)
Expand Down

0 comments on commit e59f755

Please sign in to comment.