aboutsummaryrefslogtreecommitdiffstats
path: root/module/os
diff options
context:
space:
mode:
authorRomain Dolbeau <[email protected]>2020-07-16 00:58:15 +0200
committerGitHub <[email protected]>2020-07-15 15:58:15 -0700
commit01a4852ecbe3fddd6e7dbab5b740a7871dcd7e8b (patch)
treef59b34601c27eafe0fbdad808704de0fb946f953 /module/os
parent6774931dfa9e90a88d77d54108eccc26cc2af893 (diff)
Fix early include of <linux/percpu_compat.h>
Move/add include of <linux/percpu_compat.h> to satisfy missing requirements. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Romain Dolbeau <[email protected]> Closes #10568 Closes #10569
Diffstat (limited to 'module/os')
-rw-r--r--module/os/linux/spl/spl-kmem-cache.c2
-rw-r--r--module/os/linux/spl/spl-vmem.c1
-rw-r--r--module/os/linux/spl/spl-zlib.c1
3 files changed, 3 insertions, 1 deletions
diff --git a/module/os/linux/spl/spl-kmem-cache.c b/module/os/linux/spl/spl-kmem-cache.c
index a59b559f5..034727410 100644
--- a/module/os/linux/spl/spl-kmem-cache.c
+++ b/module/os/linux/spl/spl-kmem-cache.c
@@ -22,6 +22,7 @@
* with the SPL. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <linux/percpu_compat.h>
#include <sys/kmem.h>
#include <sys/kmem_cache.h>
#include <sys/shrinker.h>
@@ -31,7 +32,6 @@
#include <sys/wait.h>
#include <linux/slab.h>
#include <linux/swap.h>
-#include <linux/percpu_compat.h>
#include <linux/prefetch.h>
/*
diff --git a/module/os/linux/spl/spl-vmem.c b/module/os/linux/spl/spl-vmem.c
index 103a04901..32372e6f2 100644
--- a/module/os/linux/spl/spl-vmem.c
+++ b/module/os/linux/spl/spl-vmem.c
@@ -22,6 +22,7 @@
* with the SPL. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <linux/percpu_compat.h>
#include <sys/debug.h>
#include <sys/vmem.h>
#include <sys/kmem_cache.h>
diff --git a/module/os/linux/spl/spl-zlib.c b/module/os/linux/spl/spl-zlib.c
index a1c6abecf..db05e2892 100644
--- a/module/os/linux/spl/spl-zlib.c
+++ b/module/os/linux/spl/spl-zlib.c
@@ -54,6 +54,7 @@
*/
+#include <linux/percpu_compat.h>
#include <sys/kmem.h>
#include <sys/kmem_cache.h>
#include <sys/zmod.h>