]> granicus.if.org Git - zfs/commitdiff
Fix Intel QAT / ZFS compatibility on v4.7.1+ kernels
authorloli10K <loli10K@users.noreply.github.com>
Tue, 3 Sep 2019 17:36:33 +0000 (19:36 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 3 Sep 2019 17:36:33 +0000 (10:36 -0700)
This change use the compat code introduced in 9cc1844a.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
Closes #9268
Closes #9269

module/zfs/qat_compress.c
module/zfs/qat_crypt.c

index 1c5c0a4e725684dca8fc39b32aae90e292493de5..b3c8c1621675008c1ae0b130ad7a8bb937f30257 100644 (file)
@@ -547,7 +547,7 @@ qat_compress(qat_compress_dir_t dir, char *src, int src_len,
 }
 
 static int
-param_set_qat_compress(const char *val, struct kernel_param *kp)
+param_set_qat_compress(const char *val, zfs_kernel_param_t *kp)
 {
        int ret;
        int *pvalue = kp->arg;
index 34c19b5823a8c4c84957de40255b4d07f252c477..2170366df1420203877bbd0126595fcecd5a9f43 100644 (file)
@@ -578,7 +578,7 @@ fail:
 }
 
 static int
-param_set_qat_encrypt(const char *val, struct kernel_param *kp)
+param_set_qat_encrypt(const char *val, zfs_kernel_param_t *kp)
 {
        int ret;
        int *pvalue = kp->arg;
@@ -600,7 +600,7 @@ param_set_qat_encrypt(const char *val, struct kernel_param *kp)
 }
 
 static int
-param_set_qat_checksum(const char *val, struct kernel_param *kp)
+param_set_qat_checksum(const char *val, zfs_kernel_param_t *kp)
 {
        int ret;
        int *pvalue = kp->arg;