sysctl: Add size argument to init_header
authorJoel Granados <joel.granados@gmail.com>
Wed, 9 Aug 2023 10:49:56 +0000 (12:49 +0200)
committerLuis Chamberlain <mcgrof@kernel.org>
Tue, 15 Aug 2023 22:26:17 +0000 (15:26 -0700)
commitb1f01e2baefc5dbe240bbf529a813b452c064204
treefe58aca3223fdfa72028f0fcd2a63bece7161079
parent1e887723545e037b5e200e77edf79802f58fc818
sysctl: Add size argument to init_header

In this commit, we add a table_size argument to the init_header function
in order to initialize the ctl_table_size variable in ctl_table_header.
Even though the size is not yet used, it is now initialized within the
sysctl subsys. We need this commit for when we start adding the
table_size arguments to the sysctl functions (e.g. register_sysctl,
__register_sysctl_table and __register_sysctl_init).

Note that in __register_sysctl_table we temporarily use a calculated
size until we add the size argument to that function in subsequent
commits.

Signed-off-by: Joel Granados <j.granados@samsung.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
fs/proc/proc_sysctl.c