diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2024-08-11 00:39:04 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-08-14 05:12:14 +0300 |
commit | ed4290f39f417793928630e85c26411db233d841 (patch) | |
tree | b3b844b47090cb23202762416f69c0bda128708a /include/linux/overflow.h | |
parent | ac8c97b19dfc01d007ccaeabbbe2daa5e05fce74 (diff) | |
download | linux-ed4290f39f417793928630e85c26411db233d841.tar.xz |
net: netconsole: Constify struct config_item_type
'struct config_item_type' is not modified in this driver.
This structure is only used with config_group_init_type_name() which takes
a const struct config_item_type* as a 3rd argument.
This also makes things consistent with 'netconsole_target_type' witch is
already const.
Constifying this structure moves some data to a read-only section, so
increase overall security, especially when the structure holds some
function pointers.
On a x86_64, with allmodconfig:
Before:
======
text data bss dec hex filename
33007 3952 1312 38271 957f drivers/net/netconsole.o
After:
=====
text data bss dec hex filename
33071 3888 1312 38271 957f drivers/net/netconsole.o
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Breno Leitao <leitao@debian.org>
Link: https://patch.msgid.link/9c205b2b4bdb09fc9e9d2cb2f2936ec053da1b1b.1723325900.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/overflow.h')
0 files changed, 0 insertions, 0 deletions