From 13e5e396a31df268cba6571a800abe9e54c47db4 Mon Sep 17 00:00:00 2001 From: loli10K Date: Tue, 3 Sep 2019 19:36:33 +0200 Subject: [PATCH] Fix Intel QAT / ZFS compatibility on v4.7.1+ kernels This change use the compat code introduced in 9cc1844a. Reviewed-by: Brian Behlendorf Signed-off-by: loli10K Closes #9268 Closes #9269 --- module/zfs/qat_compress.c | 2 +- module/zfs/qat_crypt.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/module/zfs/qat_compress.c b/module/zfs/qat_compress.c index 1c5c0a4e7..b3c8c1621 100644 --- a/module/zfs/qat_compress.c +++ b/module/zfs/qat_compress.c @@ -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; diff --git a/module/zfs/qat_crypt.c b/module/zfs/qat_crypt.c index 34c19b582..2170366df 100644 --- a/module/zfs/qat_crypt.c +++ b/module/zfs/qat_crypt.c @@ -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;