Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1557603
| From | Herbert Xu <herbert@gondor.apana.org.au> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 2/2] crypto: mediatek - fix format string for 64-bit builds |
| Date | 2017-01-12 17:50 +0100 |
| Message-ID | <sYQJA-6gs-19@gated-at.bofh.it> (permalink) |
| References | <sYrBv-7Bc-13@gated-at.bofh.it> <sYrBw-7Bc-25@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wed, Jan 11, 2017 at 02:55:20PM +0100, Arnd Bergmann wrote:
> 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>
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 1/2] crypto: mediatek - remove ARM dependencies Arnd Bergmann <arnd@arndb.de> - 2017-01-11 15:00 +0100
[PATCH 2/2] crypto: mediatek - fix format string for 64-bit builds Arnd Bergmann <arnd@arndb.de> - 2017-01-11 15:00 +0100
Re: [PATCH 2/2] crypto: mediatek - fix format string for 64-bit builds Herbert Xu <herbert@gondor.apana.org.au> - 2017-01-12 17:50 +0100
Re: [PATCH 1/2] crypto: mediatek - remove ARM dependencies Herbert Xu <herbert@gondor.apana.org.au> - 2017-01-12 17:50 +0100
csiph-web