[PATCH] clk: sunxi-ng: Constify struct ccu_reset_map
Chen-Yu Tsai
wens at csie.org
Fri Oct 25 09:12:05 PDT 2024
On Fri, 20 Sep 2024 22:25:24 +0200, Christophe JAILLET wrote:
> 'struct ccu_reset_map' are not modified in these drivers.
>
> 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
> 1533 2224 0 3757 ead drivers/clk/sunxi-ng/ccu-sun20i-d1-r.o
>
> [...]
Applied to clk-for-6.13 in git at github.com:linux-sunxi/linux-sunxi.git, thanks!
[1/1] clk: sunxi-ng: Constify struct ccu_reset_map
commit: c7e09a613bbddd0eea086e475855aba3b2410148
Best regards,
--
Chen-Yu Tsai <wens at csie.org>
More information about the linux-arm-kernel
mailing list