[PATCH 1/2] firmware: arm_scmi: Constify struct scmi_voltage_proto_ops
Sudeep Holla
sudeep.holla at arm.com
Tue Aug 26 03:37:40 PDT 2025
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
More information about the linux-arm-kernel
mailing list