]> git.ipfire.org Git - thirdparty/linux.git/commit
pmdomain: amlogic: Constify struct meson_secure_pwrc_domain_data
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 6 Jul 2025 15:45:41 +0000 (17:45 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 9 Jul 2025 11:10:53 +0000 (13:10 +0200)
commit3b2ded23053842c78fa4f057cd7beb299093af2f
tree5084a59d556de112f169d2c06f48b7574ce86638
parenta4abebf362d620d041baaa7c2e6c2bb5b6af3a69
pmdomain: amlogic: Constify struct meson_secure_pwrc_domain_data

'struct meson_secure_pwrc_domain_data' are not modified in these drivers.

Constifying these structures moves some data to a read-only section, so
increases overall security.

On a x86_64, with allmodconfig:
Before:
======
   text    data     bss     dec     hex filename
   9248     408       0    9656    25b8 drivers/pmdomain/amlogic/meson-secure-pwrc.o

After:
=====
   text    data     bss     dec     hex filename
   9344     304       0    9648    25b0 drivers/pmdomain/amlogic/meson-secure-pwrc.o

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/e71abd8d75dd842690e5a11e38037bcf5feac189.1751816732.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/pmdomain/amlogic/meson-secure-pwrc.c