mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
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:
committed by
Brian Behlendorf
parent
2bce8049c3
commit
9cc1844a1d
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user