]> www.infradead.org Git - users/jedix/linux-maple.git/commit
pmdomain: amlogic: Constify struct meson_secure_pwrc_domain_desc
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 1 Jul 2024 19:53:16 +0000 (21:53 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 9 Jul 2024 11:10:39 +0000 (13:10 +0200)
commit3324a8196ab91051bd4528ca16dce1dbc7bfabb7
tree3915f1faa148958086f144988ee805c9a2f30566
parentec9a652e514903df887791b669b70e86ab4e3ec5
pmdomain: amlogic: Constify struct meson_secure_pwrc_domain_desc

'struct meson_secure_pwrc_domain_desc' is not modified in this driver.

Constifying this structure moves some data to a read-only section, so
increase overall security.

On a x86_64, with allmodconfig, as an example:
Before:
======
   text    data     bss     dec     hex filename
   4909    4072       0    8981    2315 drivers/pmdomain/amlogic/meson-secure-pwrc.o

After:
=====
   text    data     bss     dec     hex filename
   8605     392       0    8997    2325 drivers/pmdomain/amlogic/meson-secure-pwrc.o

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/871d6b708de8bb42e1fabd8a601dc9a9a217cf00.1719863475.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/pmdomain/amlogic/meson-secure-pwrc.c