Skip to content

Commit

Permalink
crypto: stm32 - Fix last sparse warning in stm32_cryp_check_ctr_counter
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
herbertx committed Jan 14, 2021
1 parent 622aae8 commit 81064c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/crypto/stm32/stm32-cryp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 81064c9

Please sign in to comment.