diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-10-25 17:29:10 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-11-17 09:14:21 -0500 |
commit | a5a40d4624cd2328c69768f6eb41716fc249d7be (patch) | |
tree | 66effaadf8764426e28f128001b74dff392e218e | |
parent | 83d2c9a9c17b1e9f23a3a0c24c03cd18e4b02520 (diff) |
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>
-rw-r--r-- | drivers/crypto/caam/caamalg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/caam/caamalg.c b/drivers/crypto/caam/caamalg.c index f5a63ba97023..954a64c7757b 100644 --- a/drivers/crypto/caam/caamalg.c +++ b/drivers/crypto/caam/caamalg.c | |||
@@ -137,7 +137,7 @@ static void dbg_dump_sg(const char *level, const char *prefix_str, | |||
137 | } | 137 | } |
138 | 138 | ||
139 | buf = it_page + it->offset; | 139 | buf = it_page + it->offset; |
140 | len = min(tlen, it->length); | 140 | len = min_t(size_t, tlen, it->length); |
141 | print_hex_dump(level, prefix_str, prefix_type, rowsize, | 141 | print_hex_dump(level, prefix_str, prefix_type, rowsize, |
142 | groupsize, buf, len, ascii); | 142 | groupsize, buf, len, ascii); |
143 | tlen -= len; | 143 | tlen -= len; |