mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-26 13:44:15 +08:00
crypto: omap-aes - Fix sparse and compiler warnings
This patch fixes all the sparse and W=1 compiler warnings in the driver. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
d1e8315873
commit
ac855b3c10
@ -139,7 +139,7 @@ int omap_aes_write_ctrl(struct omap_aes_dev *dd)
|
||||
|
||||
for (i = 0; i < key32; i++) {
|
||||
omap_aes_write(dd, AES_REG_KEY(dd, i),
|
||||
__le32_to_cpu(dd->ctx->key[i]));
|
||||
(__force u32)cpu_to_le32(dd->ctx->key[i]));
|
||||
}
|
||||
|
||||
if ((dd->flags & (FLAGS_CBC | FLAGS_CTR)) && dd->req->iv)
|
||||
@ -363,7 +363,7 @@ int omap_aes_crypt_dma_start(struct omap_aes_dev *dd)
|
||||
{
|
||||
int err;
|
||||
|
||||
pr_debug("total: %d\n", dd->total);
|
||||
pr_debug("total: %zu\n", dd->total);
|
||||
|
||||
if (!dd->pio_only) {
|
||||
err = dma_map_sg(dd->dev, dd->in_sg, dd->in_sg_len,
|
||||
@ -409,7 +409,7 @@ static void omap_aes_finish_req(struct omap_aes_dev *dd, int err)
|
||||
|
||||
int omap_aes_crypt_dma_stop(struct omap_aes_dev *dd)
|
||||
{
|
||||
pr_debug("total: %d\n", dd->total);
|
||||
pr_debug("total: %zu\n", dd->total);
|
||||
|
||||
omap_aes_dma_stop(dd);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user