Skip to content

Commit 2ba3efb

Browse files
committed
crypto: qat - relocate qat_algs_alloc_flags()
jira LE-1907 Rebuild_History Non-Buildable kernel-5.14.0-284.30.1.el9_2 commit-author Giovanni Cabiddu <giovanni.cabiddu@intel.com> 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 <giovanni.cabiddu@intel.com> Reviewed-by: Wojciech Ziemba <wojciech.ziemba@intel.com> Reviewed-by: Adam Guerin <adam.guerin@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> (cherry picked from commit 79d8dbf) Signed-off-by: Jonathan Maple <jmaple@ciq.com>
1 parent 2c3f2c1 commit 2ba3efb

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)