summaryrefslogtreecommitdiffstats
path: root/testing/spl-grsec/constify.patch
blob: 92d0bf56834be7209b1b9f196fd65e2659c3f91e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
diff --git a/module/spl/spl-proc.c b/module/spl/spl-proc.c
index cd4fa1b..1ba7d2f 100644
--- a/module/spl/spl-proc.c
+++ b/module/spl/spl-proc.c
@@ -323,7 +323,7 @@ SPL_PROC_HANDLER(proc_force_bug)
 SPL_PROC_HANDLER(proc_console_max_delay_cs)
 {
         int rc, max_delay_cs;
-        struct ctl_table dummy = *table;
+        ctl_table_no_const dummy = *table;
         long d;
 	SENTRY;
 
@@ -355,7 +355,7 @@ SPL_PROC_HANDLER(proc_console_max_delay_cs)
 SPL_PROC_HANDLER(proc_console_min_delay_cs)
 {
         int rc, min_delay_cs;
-        struct ctl_table dummy = *table;
+        ctl_table_no_const dummy = *table;
         long d;
 	SENTRY;
 
@@ -387,7 +387,7 @@ SPL_PROC_HANDLER(proc_console_min_delay_cs)
 SPL_PROC_HANDLER(proc_console_backoff)
 {
         int rc, backoff;
-        struct ctl_table dummy = *table;
+        ctl_table_no_const dummy = *table;
 	SENTRY;
 
         dummy.data = &backoff;
@@ -417,7 +417,7 @@ SPL_PROC_HANDLER(proc_domemused)
 {
         int rc = 0;
         unsigned long min = 0, max = ~0, val;
-        struct ctl_table dummy = *table;
+        ctl_table_no_const dummy = *table;
 	SENTRY;
 
         dummy.data = &val;
@@ -444,7 +444,7 @@ SPL_PROC_HANDLER(proc_doslab)
 {
         int rc = 0;
         unsigned long min = 0, max = ~0, val = 0, mask;
-        struct ctl_table dummy = *table;
+        ctl_table_no_const dummy = *table;
         spl_kmem_cache_t *skc;
         SENTRY;