linux/arch/s390/appldata
Joel Granados 9edbfe92a0 sysctl: Add size to register_sysctl
This commit adds table_size to register_sysctl 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 either passing the table_size explicitly or using
ARRAY_SIZE on the ctl_table arrays.

We replace the register_syctl function with a macro that will add the
ARRAY_SIZE to the new register_sysctl_sz function. In this way the
callers that are already using an array of ctl_table structs do not
change. For the callers that pass a ctl_table array pointer, we pass the
table_size to register_sysctl_sz instead of the 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
..
appldata_base.c sysctl: Add size to register_sysctl 2023-08-15 15:26:17 -07:00
appldata_mem.c s390: include linux/io.h instead of asm/io.h 2023-07-03 11:19:40 +02:00
appldata_net_sum.c Documentation/s390: Update / remove developerWorks web links 2020-05-20 10:22:51 +02:00
appldata_os.c s390/appldata: use struct_size() helper 2020-06-29 16:32:34 +02:00
appldata.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Makefile s390: add a few more SPDX identifiers 2017-12-05 07:51:09 +01:00