You need to sign in or sign up before continuing.
提交 b16c3a2e 编写于 作者: H Herbert Xu 提交者: David S. Miller

[CRYPTO] api: Fixed crypto_*_reqsize return type

This patch changes the return type of crypto_*_reqsize from int to
unsigned int which matches what the underlying type is (and should
be).
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 5fa0fea2
...@@ -624,7 +624,8 @@ static inline int crypto_ablkcipher_decrypt(struct ablkcipher_request *req) ...@@ -624,7 +624,8 @@ static inline int crypto_ablkcipher_decrypt(struct ablkcipher_request *req)
return crt->decrypt(req); return crt->decrypt(req);
} }
static inline int crypto_ablkcipher_reqsize(struct crypto_ablkcipher *tfm) static inline unsigned int crypto_ablkcipher_reqsize(
struct crypto_ablkcipher *tfm)
{ {
return crypto_ablkcipher_crt(tfm)->reqsize; return crypto_ablkcipher_crt(tfm)->reqsize;
} }
...@@ -766,7 +767,7 @@ static inline int crypto_aead_decrypt(struct aead_request *req) ...@@ -766,7 +767,7 @@ static inline int crypto_aead_decrypt(struct aead_request *req)
return crypto_aead_crt(crypto_aead_reqtfm(req))->decrypt(req); return crypto_aead_crt(crypto_aead_reqtfm(req))->decrypt(req);
} }
static inline int crypto_aead_reqsize(struct crypto_aead *tfm) static inline unsigned int crypto_aead_reqsize(struct crypto_aead *tfm)
{ {
return crypto_aead_crt(tfm)->reqsize; return crypto_aead_crt(tfm)->reqsize;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册