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:
622aae8
)
crypto: stm32 - Fix last sparse warning in stm32_cryp_check_ctr_counter
author
Herbert Xu
<herbert@gondor.apana.org.au>
Mon, 4 Jan 2021 06:15:45 +0000
(17:15 +1100)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Thu, 14 Jan 2021 06:10:25 +0000
(17:10 +1100)
This patch changes the cast in stm32_cryp_check_ctr_counter from
u32 to __be32 to match the prototype of stm32_cryp_hw_write_iv
correctly.
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/stm32/stm32-cryp.c
patch
|
blob
|
history
diff --git
a/drivers/crypto/stm32/stm32-cryp.c
b/drivers/crypto/stm32/stm32-cryp.c
index 2670c30332fad9f3638d831607c9790f2966562a..2a4793176c713a98370bca7742614872b7aa238f 100644
(file)
--- a/
drivers/crypto/stm32/stm32-cryp.c
+++ b/
drivers/crypto/stm32/stm32-cryp.c
@@
-1229,7
+1229,7
@@
static void stm32_cryp_check_ctr_counter(struct stm32_cryp *cryp)
cr = stm32_cryp_read(cryp, CRYP_CR);
stm32_cryp_write(cryp, CRYP_CR, cr & ~CR_CRYPEN);
- stm32_cryp_hw_write_iv(cryp, (
u
32 *)cryp->last_ctr);
+ stm32_cryp_hw_write_iv(cryp, (
__be
32 *)cryp->last_ctr);
stm32_cryp_write(cryp, CRYP_CR, cr);
}