Commit 1e3012d0 authored by Krzysztof Koz?owski's avatar Krzysztof Koz?owski Committed by Herbert Xu
Browse files

crypto: s5p-sss - Use memcpy_toio for iomem annotated memory

Use memcpy_toio to fix following sparse warning:

drivers/crypto/s5p-sss.c:386:40: warning: incorrect type in argument 1 (different address spaces)
drivers/crypto/s5p-sss.c:386:40:    expected void *<noident>
drivers/crypto/s5p-sss.c:386:40:    got void [noderef] <asn:2>*
Signed-off-by: default avatarKrzysztof Kozlowski <>
Acked-by: default avatarVladimir Zapolskiy <>
Signed-off-by: default avatarHerbert Xu <>
parent 313becd1
......@@ -383,7 +383,7 @@ static void s5p_set_aes(struct s5p_aes_dev *dev,
void __iomem *keystart;
if (iv)
memcpy(dev->aes_ioaddr + SSS_REG_AES_IV_DATA(0), iv, 0x10);
memcpy_toio(dev->aes_ioaddr + SSS_REG_AES_IV_DATA(0), iv, 0x10);
if (keylen == AES_KEYSIZE_256)
keystart = dev->aes_ioaddr + SSS_REG_AES_KEY_DATA(0);
......@@ -392,7 +392,7 @@ static void s5p_set_aes(struct s5p_aes_dev *dev,
keystart = dev->aes_ioaddr + SSS_REG_AES_KEY_DATA(4);
memcpy(keystart, key, keylen);
memcpy_toio(keystart, key, keylen);
static void s5p_aes_crypt_start(struct s5p_aes_dev *dev, unsigned long mode)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment