Skip to content

Commit 2baa595

Browse files
committed
crypto: qat - relocate qat_algs_alloc_flags()
jira LE-1907 Rebuild_History Non-Buildable kernel-rt-5.14.0-284.30.1.rt14.315.el9_2 commit-author Giovanni Cabiddu <[email protected]> commit 79d8dbf Move qat_algs_alloc_flags() from qat_crypto.h to qat_bl.h as this will be used also by the compression logic. Signed-off-by: Giovanni Cabiddu <[email protected]> Reviewed-by: Wojciech Ziemba <[email protected]> Reviewed-by: Adam Guerin <[email protected]> Signed-off-by: Herbert Xu <[email protected]> (cherry picked from commit 79d8dbf) Signed-off-by: Jonathan Maple <[email protected]>
1 parent cbb0a3d commit 2baa595

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

drivers/crypto/qat/qat_common/qat_bl.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
/* Copyright(c) 2014 - 2022 Intel Corporation */
33
#ifndef QAT_BL_H
44
#define QAT_BL_H
5+
#include <linux/crypto.h>
56
#include <linux/scatterlist.h>
67
#include <linux/types.h>
78

@@ -52,4 +53,9 @@ int qat_bl_sgl_to_bufl(struct adf_accel_dev *accel_dev,
5253
struct qat_sgl_to_bufl_params *params,
5354
gfp_t flags);
5455

56+
static inline gfp_t qat_algs_alloc_flags(struct crypto_async_request *req)
57+
{
58+
return req->flags & CRYPTO_TFM_REQ_MAY_SLEEP ? GFP_KERNEL : GFP_ATOMIC;
59+
}
60+
5561
#endif

drivers/crypto/qat/qat_common/qat_crypto.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,4 @@ static inline bool adf_hw_dev_has_crypto(struct adf_accel_dev *accel_dev)
6565
return true;
6666
}
6767

68-
static inline gfp_t qat_algs_alloc_flags(struct crypto_async_request *req)
69-
{
70-
return req->flags & CRYPTO_TFM_REQ_MAY_SLEEP ? GFP_KERNEL : GFP_ATOMIC;
71-
}
72-
7368
#endif

0 commit comments

Comments
 (0)