projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50af327
)
crypto: ccree - use a proper le32 type for le32 val
author
Gilad Ben-Yossef
<gilad@benyossef.com>
Sun, 28 Apr 2019 08:33:22 +0000
(11:33 +0300)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Fri, 3 May 2019 06:03:30 +0000
(14:03 +0800)
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:
dcf6285d18ea1
("crypto: ccree - add CID and PID support")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccree/cc_driver.c
patch
|
blob
|
history
diff --git
a/drivers/crypto/ccree/cc_driver.c
b/drivers/crypto/ccree/cc_driver.c
index
4ea8e19
..
86ac7b4
100644
(file)
--- a/
drivers/crypto/ccree/cc_driver.c
+++ b/
drivers/crypto/ccree/cc_driver.c
@@
-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];
-
u
32 val;
+
__le
32 val;
} idr;
for (i = 0; i < CC_NUM_IDRS; ++i)