aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorChristophe JAILLET <[email protected]>2025-05-02 15:32:19 +0000
committerUlf Hansson <[email protected]>2025-05-05 08:22:21 +0000
commite3407cc5eeff5a5375016a6da93c525f5ef2e1f9 (patch)
tree2222cc8a30503ed6aabcc7382147c7006426d1a6 /rust/helpers/helpers.c
parentpmdomain: core: Use genpd->opp_table to simplify error/remove path (diff)
downloadkernel-e3407cc5eeff5a5375016a6da93c525f5ef2e1f9.tar.gz
kernel-e3407cc5eeff5a5375016a6da93c525f5ef2e1f9.zip
pmdomain: amlogic: Constify some structures
Most structures in this driver are not modified. Constifying these structures moves some data to a read-only section, so increase overall security, especially when the structure holds some function pointers. (This is the case for see meson_ee_pwrc_domain_desc) On a x86_64, with allmodconfig, as an example: Before: ====== text data bss dec hex filename 8924 3832 0 12756 31d4 drivers/pmdomain/amlogic/meson-ee-pwrc.o After: ===== text data bss dec hex filename 12396 336 0 12732 31bc drivers/pmdomain/amlogic/meson-ee-pwrc.o Signed-off-by: Christophe JAILLET <[email protected]> Reviewed-by: Martin Blumenstingl <[email protected]> Link: https://lore.kernel.org/r/edc560afe2a8763c93341d161daeb8b33ba606c6.1746199917.git.christophe.jaillet@wanadoo.fr Signed-off-by: Ulf Hansson <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions