about summary refs log tree commit diff
path: root/pkgs/os-specific/linux/spl/const.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/os-specific/linux/spl/const.patch')
-rw-r--r--pkgs/os-specific/linux/spl/const.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/spl/const.patch b/pkgs/os-specific/linux/spl/const.patch
new file mode 100644
index 000000000000..3bfcaa22b13c
--- /dev/null
+++ b/pkgs/os-specific/linux/spl/const.patch
@@ -0,0 +1,13 @@
+diff --git a/module/spl/spl-proc.c b/module/spl/spl-proc.c
+index f25239a..b731123 100644
+--- a/module/spl/spl-proc.c
++++ b/module/spl/spl-proc.c
+@@ -38,7 +38,7 @@
+ 
+ #define SS_DEBUG_SUBSYS SS_PROC
+ 
+-#if defined(CONSTIFY_PLUGIN) && LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0)
++#if defined(CONSTIFY_PLUGIN)
+ typedef struct ctl_table __no_const spl_ctl_table;
+ #else
+ typedef struct ctl_table spl_ctl_table;