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 <neskovic@gmail.com>
Signed-off-by: Jason Zaman <jason@perfinion.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #4997
Closes #5001
This commit is contained in:
Gvozden Neskovic
2016-08-21 21:29:49 +02:00
committed by Brian Behlendorf
parent 2bce8049c3
commit 9cc1844a1d
6 changed files with 84 additions and 13 deletions
+3 -2
View File
@@ -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));
}