mirror of https://github.com/torvalds/linux.git
"struct vcap_operations" are not modified in these drivers. Constifying this structure moves some data to a read-only section, so increase overall security. In order to do it, "struct vcap_control" also needs to be adjusted to this new const qualifier. As an example, on a x86_64, with allmodconfig: Before: ====== text data bss dec hex filename 15176 1094 16 16286 3f9e drivers/net/ethernet/microchip/lan966x/lan966x_vcap_impl.o After: ===== text data bss dec hex filename 15268 998 16 16282 3f9a drivers/net/ethernet/microchip/lan966x/lan966x_vcap_impl.o Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Reviewed-by: Daniel Machon <daniel.machon@microchip.com> Link: https://lore.kernel.org/r/d8e76094d2e98ebb5bfc8205799b3a9db0b46220.1718524644.git.christophe.jaillet@wanadoo.fr Signed-off-by: Paolo Abeni <pabeni@redhat.com> |
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| sparx5_calendar.c | ||
| sparx5_dcb.c | ||
| sparx5_ethtool.c | ||
| sparx5_fdma.c | ||
| sparx5_mactable.c | ||
| sparx5_main.c | ||
| sparx5_main.h | ||
| sparx5_main_regs.h | ||
| sparx5_mirror.c | ||
| sparx5_netdev.c | ||
| sparx5_packet.c | ||
| sparx5_pgid.c | ||
| sparx5_phylink.c | ||
| sparx5_police.c | ||
| sparx5_pool.c | ||
| sparx5_port.c | ||
| sparx5_port.h | ||
| sparx5_psfp.c | ||
| sparx5_ptp.c | ||
| sparx5_qos.c | ||
| sparx5_qos.h | ||
| sparx5_sdlb.c | ||
| sparx5_switchdev.c | ||
| sparx5_tc.c | ||
| sparx5_tc.h | ||
| sparx5_tc_flower.c | ||
| sparx5_tc_matchall.c | ||
| sparx5_vcap_ag_api.c | ||
| sparx5_vcap_ag_api.h | ||
| sparx5_vcap_debugfs.c | ||
| sparx5_vcap_debugfs.h | ||
| sparx5_vcap_impl.c | ||
| sparx5_vcap_impl.h | ||
| sparx5_vlan.c | ||