From bce795ad7a1385fe81052bab6a85ae17b90986b7 Mon Sep 17 00:00:00 2001 From: Matthew Macy Date: Fri, 11 Oct 2019 10:10:20 -0700 Subject: [PATCH] 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 Reviewed-by: Brian Behlendorf Reviewed-by: Igor Kozhukhov Signed-off-by: Matt Macy Closes #9449 --- module/icp/algs/aes/aes_impl.c | 1 - module/icp/algs/modes/gcm.c | 1 - module/zcommon/zfs_fletcher.c | 1 - 3 files changed, 3 deletions(-) diff --git a/module/icp/algs/aes/aes_impl.c b/module/icp/algs/aes/aes_impl.c index b60b16cc0..d97e2e239 100644 --- a/module/icp/algs/aes/aes_impl.c +++ b/module/icp/algs/aes/aes_impl.c @@ -407,7 +407,6 @@ aes_impl_set(const char *val) } #if defined(_KERNEL) -#include static int icp_aes_impl_set(const char *val, zfs_kernel_param_t *kp) diff --git a/module/icp/algs/modes/gcm.c b/module/icp/algs/modes/gcm.c index 1fb8e256a..195a96df5 100644 --- a/module/icp/algs/modes/gcm.c +++ b/module/icp/algs/modes/gcm.c @@ -810,7 +810,6 @@ gcm_impl_set(const char *val) } #if defined(_KERNEL) -#include static int icp_gcm_impl_set(const char *val, zfs_kernel_param_t *kp) diff --git a/module/zcommon/zfs_fletcher.c b/module/zcommon/zfs_fletcher.c index c14c95fa2..3b4052c8a 100644 --- a/module/zcommon/zfs_fletcher.c +++ b/module/zcommon/zfs_fletcher.c @@ -896,7 +896,6 @@ zio_abd_checksum_func_t fletcher_4_abd_ops = { #if defined(_KERNEL) -#include static int fletcher_4_param_get(char *buffer, zfs_kernel_param_t *unused)