linux/drivers/pmdomain/amlogic
Christophe JAILLET 3324a8196a 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>
2024-07-09 13:10:39 +02:00
..
Kconfig pmdomain: amlogic: Move Kconfig options to the pmdomain subsystem 2023-09-20 10:08:45 +02:00
Makefile
meson-ee-pwrc.c pmdomain: amlogic: add missing MODULE_DESCRIPTION() macros 2024-06-12 17:10:49 +02:00
meson-gx-pwrc-vpu.c pmdomain: amlogic: add missing MODULE_DESCRIPTION() macros 2024-06-12 17:10:49 +02:00
meson-secure-pwrc.c pmdomain: amlogic: Constify struct meson_secure_pwrc_domain_desc 2024-07-09 13:10:39 +02:00