Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

crypto: qat - expose configuration functions

The functions related to compression and crypto configurations were
previously declared static, restricting the visibility to the defining
source file. Remove the static qualifier, allowing it to be used in other
files as needed. This is necessary for sharing this configuration functions
with other QAT generations.

Signed-off-by: Suman Kumar Chakraborty <suman.kumar.chakraborty@intel.com>
Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Suman Kumar Chakraborty and committed by
Herbert Xu
7db55726 61e15287

+6 -3
+3 -3
drivers/crypto/intel/qat/qat_common/adf_gen4_config.c
··· 11 11 #include "qat_compression.h" 12 12 #include "qat_crypto.h" 13 13 14 - static int adf_crypto_dev_config(struct adf_accel_dev *accel_dev) 14 + int adf_crypto_dev_config(struct adf_accel_dev *accel_dev) 15 15 { 16 16 char key[ADF_CFG_MAX_KEY_LEN_IN_BYTES]; 17 17 int banks = GET_MAX_BANKS(accel_dev); ··· 117 117 return ret; 118 118 } 119 119 120 - static int adf_comp_dev_config(struct adf_accel_dev *accel_dev) 120 + int adf_comp_dev_config(struct adf_accel_dev *accel_dev) 121 121 { 122 122 char key[ADF_CFG_MAX_KEY_LEN_IN_BYTES]; 123 123 int banks = GET_MAX_BANKS(accel_dev); ··· 187 187 return ret; 188 188 } 189 189 190 - static int adf_no_dev_config(struct adf_accel_dev *accel_dev) 190 + int adf_no_dev_config(struct adf_accel_dev *accel_dev) 191 191 { 192 192 unsigned long val; 193 193 int ret;
+3
drivers/crypto/intel/qat/qat_common/adf_gen4_config.h
··· 7 7 8 8 int adf_gen4_dev_config(struct adf_accel_dev *accel_dev); 9 9 int adf_gen4_cfg_dev_init(struct adf_accel_dev *accel_dev); 10 + int adf_crypto_dev_config(struct adf_accel_dev *accel_dev); 11 + int adf_comp_dev_config(struct adf_accel_dev *accel_dev); 12 + int adf_no_dev_config(struct adf_accel_dev *accel_dev); 10 13 11 14 #endif