diff options
author | Joel Granados <[email protected]> | 2023-08-09 12:49:59 +0200 |
---|---|---|
committer | Luis Chamberlain <[email protected]> | 2023-08-15 15:26:17 -0700 |
commit | 3bc269cfd3e119be84b69d95aec3a9e147016bb2 (patch) | |
tree | a5f12d9ae0dcdf8150e3ff67a7c7573b0aefab14 /lib/test_fortify/write_overflow-memcpy.c | |
parent | 9edbfe92a0a1355bae1e47c8f542ac0d39f19f8c (diff) |
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 <[email protected]>
Suggested-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Luis Chamberlain <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-memcpy.c')
0 files changed, 0 insertions, 0 deletions