@@ -205,7 +205,7 @@ static int _proc_do_string(char *data, int maxlen, int write,
205
205
return 0 ;
206
206
}
207
207
208
- static void warn_sysctl_write (struct ctl_table * table )
208
+ static void warn_sysctl_write (const struct ctl_table * table )
209
209
{
210
210
pr_warn_once ("%s wrote to %s when file position was not 0!\n"
211
211
"This will not be supported in the future. To silence this\n"
@@ -223,7 +223,7 @@ static void warn_sysctl_write(struct ctl_table *table)
223
223
* handlers can ignore the return value.
224
224
*/
225
225
static bool proc_first_pos_non_zero_ignore (loff_t * ppos ,
226
- struct ctl_table * table )
226
+ const struct ctl_table * table )
227
227
{
228
228
if (!* ppos )
229
229
return false;
@@ -468,7 +468,7 @@ static int do_proc_douintvec_conv(unsigned long *lvalp,
468
468
469
469
static const char proc_wspace_sep [] = { ' ' , '\t' , '\n' };
470
470
471
- static int __do_proc_dointvec (void * tbl_data , struct ctl_table * table ,
471
+ static int __do_proc_dointvec (void * tbl_data , const struct ctl_table * table ,
472
472
int write , void * buffer ,
473
473
size_t * lenp , loff_t * ppos ,
474
474
int (* conv )(bool * negp , unsigned long * lvalp , int * valp ,
@@ -541,7 +541,7 @@ static int __do_proc_dointvec(void *tbl_data, struct ctl_table *table,
541
541
return err ;
542
542
}
543
543
544
- static int do_proc_dointvec (struct ctl_table * table , int write ,
544
+ static int do_proc_dointvec (const struct ctl_table * table , int write ,
545
545
void * buffer , size_t * lenp , loff_t * ppos ,
546
546
int (* conv )(bool * negp , unsigned long * lvalp , int * valp ,
547
547
int write , void * data ),
@@ -552,7 +552,7 @@ static int do_proc_dointvec(struct ctl_table *table, int write,
552
552
}
553
553
554
554
static int do_proc_douintvec_w (unsigned int * tbl_data ,
555
- struct ctl_table * table ,
555
+ const struct ctl_table * table ,
556
556
void * buffer ,
557
557
size_t * lenp , loff_t * ppos ,
558
558
int (* conv )(unsigned long * lvalp ,
@@ -639,7 +639,7 @@ static int do_proc_douintvec_r(unsigned int *tbl_data, void *buffer,
639
639
return err ;
640
640
}
641
641
642
- static int __do_proc_douintvec (void * tbl_data , struct ctl_table * table ,
642
+ static int __do_proc_douintvec (void * tbl_data , const struct ctl_table * table ,
643
643
int write , void * buffer ,
644
644
size_t * lenp , loff_t * ppos ,
645
645
int (* conv )(unsigned long * lvalp ,
@@ -675,7 +675,7 @@ static int __do_proc_douintvec(void *tbl_data, struct ctl_table *table,
675
675
return do_proc_douintvec_r (i , buffer , lenp , ppos , conv , data );
676
676
}
677
677
678
- int do_proc_douintvec (struct ctl_table * table , int write ,
678
+ int do_proc_douintvec (const struct ctl_table * table , int write ,
679
679
void * buffer , size_t * lenp , loff_t * ppos ,
680
680
int (* conv )(unsigned long * lvalp ,
681
681
unsigned int * valp ,
@@ -1017,8 +1017,9 @@ static int sysrq_sysctl_handler(struct ctl_table *table, int write,
1017
1017
}
1018
1018
#endif
1019
1019
1020
- static int __do_proc_doulongvec_minmax (void * data , struct ctl_table * table ,
1021
- int write , void * buffer , size_t * lenp , loff_t * ppos ,
1020
+ static int __do_proc_doulongvec_minmax (void * data ,
1021
+ const struct ctl_table * table , int write ,
1022
+ void * buffer , size_t * lenp , loff_t * ppos ,
1022
1023
unsigned long convmul , unsigned long convdiv )
1023
1024
{
1024
1025
unsigned long * i , * min , * max ;
@@ -1090,7 +1091,7 @@ static int __do_proc_doulongvec_minmax(void *data, struct ctl_table *table,
1090
1091
return err ;
1091
1092
}
1092
1093
1093
- static int do_proc_doulongvec_minmax (struct ctl_table * table , int write ,
1094
+ static int do_proc_doulongvec_minmax (const struct ctl_table * table , int write ,
1094
1095
void * buffer , size_t * lenp , loff_t * ppos , unsigned long convmul ,
1095
1096
unsigned long convdiv )
1096
1097
{
0 commit comments