Thread (2 messages) 2 messages, 2 authors, 2024-10-25

Re: [PATCH] clk: sunxi-ng: Constify struct ccu_reset_map

From: Chen-Yu Tsai <hidden>
Date: 2024-10-25 16:12:08
Also in: kernel-janitors, linux-clk, linux-sunxi, lkml

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@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 [off-list ref]

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help