crypto: tls - Use data directly in completion function

Facing build error in building tls
error: passing argument 3 of ?ahash_request_set_callback?
from incompatible pointer type [-Werror=incompatible-pointer-types]

Issue introduced after changing prototype of "crypto_completion_t"
function pointer in include/linux/crypto.h, conversion of
completion function of tls was missed.

Changes are done to use data directly in completion function of tls.

Fixes: 255e48eb17 ("crypto: api - Use data directly in completion function")
Signed-off-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
This commit is contained in:
Meenakshi Aggarwal 2023-03-10 06:24:19 +01:00 committed by Dong Aisheng
parent 2ea72d2ba8
commit b32926ef04

View File

@ -1,6 +1,6 @@
/* /*
* Copyright 2013 Freescale * Copyright 2013 Freescale
* Copyright 2017 NXP * Copyright 2017, 2023 NXP
* *
* This program is free software; you can redistribute it and/or modify it * This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free * under the terms of the GNU General Public License as published by the Free
@ -50,9 +50,9 @@ struct async_op {
int err; int err;
}; };
static void tls_async_op_done(struct crypto_async_request *req, int err) static void tls_async_op_done(void *data, int err)
{ {
struct async_op *areq = req->data; struct async_op *areq = data;
if (err == -EINPROGRESS) if (err == -EINPROGRESS)
return; return;