Joel Granados 3bc269cfd3 sysctl: Add size arg to __register_sysctl_init
This commit adds table_size to __register_sysctl_init in preparation for
the removal of the sentinel elements in the ctl_table arrays (last empty
markers). And though we do *not* remove any sentinels in this commit, we
set things up by calculating the ctl_table array size with ARRAY_SIZE.

We add a table_size argument to __register_sysctl_init and modify the
register_sysctl_init macro to calculate the array size with ARRAY_SIZE.
The original callers do not need to be updated as they will go through
the new macro.

Signed-off-by: Joel Granados <j.granados@samsung.com>
Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
2023-08-15 15:26:17 -07:00
..
2022-10-03 14:21:45 -07:00
2023-02-20 11:53:11 -08:00
2023-01-19 09:24:28 +01:00
2023-07-06 10:06:04 -07:00
2022-10-10 11:24:19 -07:00
2022-10-03 14:21:45 -07:00
2023-01-19 09:24:25 +01:00
2022-10-03 14:21:45 -07:00
2023-04-18 16:39:33 -07:00
2023-06-19 16:19:25 -07:00
2022-10-03 14:21:45 -07:00
2022-10-03 14:21:45 -07:00