Remove linux/mod_compat.h from common code

It is no longer necessary; mod_compat.h is included from zfs_context.h.

Reviewed-by: Ryan Moeller <ryan@ixsystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Igor Kozhukhov <igor@dilos.org>
Signed-off-by: Matt Macy <mmacy@FreeBSD.org>
Closes #9449
This commit is contained in:
Matthew Macy 2019-10-11 10:10:20 -07:00 committed by Brian Behlendorf
parent af1698f59b
commit bce795ad7a
3 changed files with 0 additions and 3 deletions

View File

@ -407,7 +407,6 @@ aes_impl_set(const char *val)
} }
#if defined(_KERNEL) #if defined(_KERNEL)
#include <linux/mod_compat.h>
static int static int
icp_aes_impl_set(const char *val, zfs_kernel_param_t *kp) icp_aes_impl_set(const char *val, zfs_kernel_param_t *kp)

View File

@ -810,7 +810,6 @@ gcm_impl_set(const char *val)
} }
#if defined(_KERNEL) #if defined(_KERNEL)
#include <linux/mod_compat.h>
static int static int
icp_gcm_impl_set(const char *val, zfs_kernel_param_t *kp) icp_gcm_impl_set(const char *val, zfs_kernel_param_t *kp)

View File

@ -896,7 +896,6 @@ zio_abd_checksum_func_t fletcher_4_abd_ops = {
#if defined(_KERNEL) #if defined(_KERNEL)
#include <linux/mod_compat.h>
static int static int
fletcher_4_param_get(char *buffer, zfs_kernel_param_t *unused) fletcher_4_param_get(char *buffer, zfs_kernel_param_t *unused)