diff options
author | Arnd Bergmann <arnd@arndb.de> | 2017-01-11 14:55:20 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-01-12 17:26:47 +0100 |
commit | 41e05324fde983b1342f86239868f1959f6032a5 (patch) | |
tree | aa9070f4d66e2bb85ee5b0f96af0a717cbde3de1 /arch/arm64/crypto/chacha20-neon-glue.c | |
parent | crypto: mediatek - remove ARM dependencies (diff) | |
download | linux-41e05324fde983b1342f86239868f1959f6032a5.tar.xz linux-41e05324fde983b1342f86239868f1959f6032a5.zip |
crypto: mediatek - fix format string for 64-bit builds
After I enabled COMPILE_TEST for non-ARM targets, I ran into these
warnings:
crypto/mediatek/mtk-aes.c: In function 'mtk_aes_info_map':
crypto/mediatek/mtk-aes.c:224:28: error: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Werror=format=]
dev_err(cryp->dev, "dma %d bytes error\n", sizeof(*info));
crypto/mediatek/mtk-sha.c:344:28: error: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Werror=format=]
crypto/mediatek/mtk-sha.c:550:21: error: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'size_t {aka long unsigned int}' [-Werror=format=]
The correct format for size_t is %zu, so use that in all three
cases.
Fixes: 785e5c616c84 ("crypto: mediatek - Add crypto driver support for some MediaTek chips")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'arch/arm64/crypto/chacha20-neon-glue.c')
0 files changed, 0 insertions, 0 deletions