diff options
| author | Joel Granados <[email protected]> | 2025-01-31 13:10:57 +0000 |
|---|---|---|
| committer | Joel Granados <[email protected]> | 2025-02-05 09:15:40 +0000 |
| commit | 7347586f007f7bc62bbbd1cba9d9351e4f79ebb0 (patch) | |
| tree | 603d710f6daf0ad2aaa81d1dc4fd05f8f005321c /net/unix/unix_bpf.c | |
| parent | Linux 6.14-rc1 (diff) | |
| download | kernel-7347586f007f7bc62bbbd1cba9d9351e4f79ebb0.tar.gz kernel-7347586f007f7bc62bbbd1cba9d9351e4f79ebb0.zip | |
csky: Remove the size from alignment_tbl declaration
Having to synchronize the number of ctl_table array elements with the
size in the declaration can lead to discrepancies between the two
values. Since commit d7a76ec87195 ("sysctl: Remove check for sentinel
element in ctl_table arrays"), the calculation of the ctl_table array
size is done solely by the ARRAY_SIZE macro removing the need for the
size in the declaration.
Remove the size for the aligment_tbl declaration and const qualify the
array for good measure.
Signed-off-by: Joel Granados <[email protected]>
Reviewed-by: Kees Cook <[email protected]>
Diffstat (limited to 'net/unix/unix_bpf.c')
0 files changed, 0 insertions, 0 deletions
