aboutsummaryrefslogtreecommitdiffstats
path: root/module/zcommon
diff options
context:
space:
mode:
authorGvozden Neskovic <[email protected]>2016-08-21 21:29:49 +0200
committerBrian Behlendorf <[email protected]>2016-08-22 10:05:45 -0700
commit9cc1844a1dab9cb62743f1f31eca73fcc6aaf0c4 (patch)
tree78cb3ecc12c5dc05ac1d522542ab152e989b3d4b /module/zcommon
parent2bce8049c3d782f4feb72493564754c0595606bf (diff)
Linux compat: Grsecurity kernel
API Change: Module parameter set/get methods take const parameter in Grsecurity kernel v4.7.1 Signed-off-by: Gvozden Neskovic <[email protected]> Signed-off-by: Jason Zaman <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #4997 Closes #5001
Diffstat (limited to 'module/zcommon')
-rw-r--r--module/zcommon/zfs_fletcher.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/module/zcommon/zfs_fletcher.c b/module/zcommon/zfs_fletcher.c
index 221e586d8..5436bae9a 100644
--- a/module/zcommon/zfs_fletcher.c
+++ b/module/zcommon/zfs_fletcher.c
@@ -653,9 +653,10 @@ fletcher_4_fini(void)
}
#if defined(_KERNEL) && defined(HAVE_SPL)
+#include <linux/mod_compat.h>
static int
-fletcher_4_param_get(char *buffer, struct kernel_param *unused)
+fletcher_4_param_get(char *buffer, zfs_kernel_param_t *unused)
{
const uint32_t impl = IMPL_READ(fletcher_4_impl_chosen);
char *fmt;
@@ -676,7 +677,7 @@ fletcher_4_param_get(char *buffer, struct kernel_param *unused)
}
static int
-fletcher_4_param_set(const char *val, struct kernel_param *unused)
+fletcher_4_param_set(const char *val, zfs_kernel_param_t *unused)
{
return (fletcher_4_impl_set(val));
}