mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-23 01:31:30 +03:00
nvvse: cryptodev: Fix build for Linux v6.3
Commit 255e48eb1768 ("crypto: api - Use data directly in completion
function") updates the typedef crypto_completion_t such that a pointer
to the data is directly passed to the completion function instead of a
structure of type crypto_async_request. This breaks building the Tegra
NVVSE Cryptodev driver for Linux v6.3 and so update the driver
accordingly to fix the build.
Bug 4014315
Change-Id: I6e9ed50f5c226548efa5f52d094243f466ad399d
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2867127
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
7f2c6fcd8c
commit
cadbbe3f1f
@@ -134,9 +134,15 @@ struct tnvvse_cmac_req_data {
|
|||||||
uint8_t result;
|
uint8_t result;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if (KERNEL_VERSION(6, 3, 0) <= LINUX_VERSION_CODE)
|
||||||
|
static void tnvvse_crypto_complete(void *data, int err)
|
||||||
|
{
|
||||||
|
struct tnvvse_crypto_completion *done = data;
|
||||||
|
#else
|
||||||
static void tnvvse_crypto_complete(struct crypto_async_request *req, int err)
|
static void tnvvse_crypto_complete(struct crypto_async_request *req, int err)
|
||||||
{
|
{
|
||||||
struct tnvvse_crypto_completion *done = req->data;
|
struct tnvvse_crypto_completion *done = req->data;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (err != -EINPROGRESS) {
|
if (err != -EINPROGRESS) {
|
||||||
done->req_err = err;
|
done->req_err = err;
|
||||||
|
|||||||
Reference in New Issue
Block a user