* [PATCH] crypto: ccree: use a proper le32 type for le32 val
@ 2019-04-28 8:33 Gilad Ben-Yossef
2019-05-03 6:11 ` Herbert Xu
0 siblings, 1 reply; 2+ messages in thread
From: Gilad Ben-Yossef @ 2019-04-28 8:33 UTC (permalink / raw)
To: Herbert Xu, David S. Miller
Cc: Ofir Drang, kbuild test robot, linux-crypto, linux-kernel
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")
---
drivers/crypto/ccree/cc_driver.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/crypto/ccree/cc_driver.c b/drivers/crypto/ccree/cc_driver.c
index 902f196d4be1..208957726cff 100644
--- 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];
- u32 val;
+ __le32 val;
} idr;
for (i = 0; i < CC_NUM_IDRS; ++i)
--
2.21.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] crypto: ccree: use a proper le32 type for le32 val
2019-04-28 8:33 [PATCH] crypto: ccree: use a proper le32 type for le32 val Gilad Ben-Yossef
@ 2019-05-03 6:11 ` Herbert Xu
0 siblings, 0 replies; 2+ messages in thread
From: Herbert Xu @ 2019-05-03 6:11 UTC (permalink / raw)
To: Gilad Ben-Yossef
Cc: David S. Miller, Ofir Drang, kbuild test robot, linux-crypto,
linux-kernel
On Sun, Apr 28, 2019 at 11:33:22AM +0300, Gilad Ben-Yossef wrote:
> 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")
> ---
> drivers/crypto/ccree/cc_driver.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-05-03 13:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-28 8:33 [PATCH] crypto: ccree: use a proper le32 type for le32 val Gilad Ben-Yossef
2019-05-03 6:11 ` Herbert Xu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.