mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
crypto: stm32 - Fix last sparse warning in stm32_cryp_check_ctr_counter
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>
This commit is contained in:
parent
622aae879c
commit
81064c96d8
1 changed files with 1 additions and 1 deletions
|
@ -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, (u32 *)cryp->last_ctr);
|
||||
stm32_cryp_hw_write_iv(cryp, (__be32 *)cryp->last_ctr);
|
||||
|
||||
stm32_cryp_write(cryp, CRYP_CR, cr);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue