diff options
author | Christophe JAILLET <[email protected]> | 2024-06-16 09:57:56 +0200 |
---|---|---|
committer | Paolo Abeni <[email protected]> | 2024-06-18 15:26:39 +0200 |
commit | 8c379e3ce404347acf35fbb4cf8694dd8d35f2a0 (patch) | |
tree | 92220da95c2854facee4355ac418a0dbdcea75fa /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | e845bb84fb6ec57f979cfba40e794c6e8b249585 (diff) |
net: microchip: Constify struct vcap_operations
"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 <[email protected]>
Reviewed-by: Daniel Machon <[email protected]>
Link: https://lore.kernel.org/r/d8e76094d2e98ebb5bfc8205799b3a9db0b46220.1718524644.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions