summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorJoel Granados <joel.granados@kernel.org>2025-10-01 16:46:36 +0300
committerJoel Granados <joel.granados@kernel.org>2025-11-27 17:43:20 +0300
commit6ca07a9b63ff4ac24931a21086542cd7092ad74f (patch)
treec455e589b8f59090964db31a5c9ad9ac0b36e88c /include/linux
parent74a7b4f18396f07e87c7fda5c19d1fcfb8c1dd44 (diff)
downloadlinux-6ca07a9b63ff4ac24931a21086542cd7092ad74f.tar.xz
sysctl: Replace void pointer with const pointer to ctl_table
* Replace void* data in the converter functions with a const struct ctl_table* table as it was only getting forwarding values from ctl_table->extra{1,2}. * Remove the void* data in the do_proc_* functions as they already had a pointer to the ctl_table. * Remove min/max structures do_proc_do{uint,int}vec_minmax_conv_param; the min/max values get passed directly in ctl_table. * Keep min/max initialization in extra{1,2} in proc_dou8vec_minmax. * The do_proc_douintvec was adjusted outside sysctl.c as it is exported to fs/pipe.c. Signed-off-by: Joel Granados <joel.granados@kernel.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/sysctl.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/linux/sysctl.h b/include/linux/sysctl.h
index 28c4a997fd21..436191e569da 100644
--- a/include/linux/sysctl.h
+++ b/include/linux/sysctl.h
@@ -235,9 +235,8 @@ bool sysctl_is_alias(char *param);
int do_proc_douintvec(const struct ctl_table *table, int write,
void *buffer, size_t *lenp, loff_t *ppos,
int (*conv)(unsigned long *lvalp,
- unsigned int *valp,
- int write, void *data),
- void *data);
+ unsigned int *valp, int write,
+ const struct ctl_table *table));
extern int unaligned_enabled;
extern int no_unaligned_warning;