]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
sysctl: Replace void pointer with const pointer to ctl_table
authorJoel Granados <joel.granados@kernel.org>
Wed, 1 Oct 2025 13:46:36 +0000 (15:46 +0200)
committerJoel Granados <joel.granados@kernel.org>
Thu, 27 Nov 2025 14:43:20 +0000 (15:43 +0100)
commit6ca07a9b63ff4ac24931a21086542cd7092ad74f
treec455e589b8f59090964db31a5c9ad9ac0b36e88c
parent74a7b4f18396f07e87c7fda5c19d1fcfb8c1dd44
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>
fs/pipe.c
include/linux/sysctl.h
kernel/sysctl.c