Thread (3 messages) 3 messages, 2 authors, 2025-08-26

Re: [PATCH 1/2] firmware: arm_scmi: Constify struct scmi_voltage_proto_ops

From: Sudeep Holla <hidden>
Date: 2025-08-26 10:37:46
Also in: arm-scmi, kernel-janitors, lkml

On Tue, 29 Jul 2025 21:15:03 +0200, Christophe JAILLET wrote:
'struct scmi_voltage_proto_ops' is not modified in this driver.

Constifying this structure moves some data to a read-only section, so
increases overall security, especially when the structure holds some
function pointers.

On a x86_64, with allmodconfig, as an example:
Before:
======
   text	   data	    bss	    dec	    hex	filename
  13142	   1808	      0	  14950	   3a66	drivers/firmware/arm_scmi/voltage.o

[...]
Applied to sudeep.holla/linux (for-next/scmi/updates), thanks!

[1/2] firmware: arm_scmi: Constify struct scmi_voltage_proto_ops
      https://git.kernel.org/sudeep.holla/c/abd658d3e733
[2/2] firmware: arm_scmi: Constify struct scmi_transport_ops
      https://git.kernel.org/sudeep.holla/c/224dcf2968ca
--
Regards,
Sudeep

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