]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
crypto: caam - fix type mismatch warning
authorArnd Bergmann <arnd@arndb.de>
Tue, 25 Oct 2016 21:29:10 +0000 (23:29 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 17 Nov 2016 14:14:21 +0000 (22:14 +0800)
commita5a40d4624cd2328c69768f6eb41716fc249d7be
tree66effaadf8764426e28f128001b74dff392e218e
parent83d2c9a9c17b1e9f23a3a0c24c03cd18e4b02520
crypto: caam - fix type mismatch warning

Building the caam driver on arm64 produces a harmless warning:

drivers/crypto/caam/caamalg.c:140:139: warning: comparison of distinct pointer types lacks a cast

We can use min_t to tell the compiler which type we want it to use
here.

Fixes: 5ecf8ef9103c ("crypto: caam - fix sg dump")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/caamalg.c