mbox series

[0/3] arm_scmi: Constify ops pointers in struct scmi_handle

Message ID 20200906230452.33410-1-rikard.falkeborn@gmail.com (mailing list archive)
Headers show
Series arm_scmi: Constify ops pointers in struct scmi_handle | expand

Message

Rikard Falkeborn Sept. 6, 2020, 11:04 p.m. UTC
A small patch series aiming to constify static scmi_*_ops structs in
drivers/firmware/arm_scmi. Since these are not modified, constify them
to allow the compiler to put them in read-only memory.

Rikard Falkeborn (3):
  cpufreq: arm_scmi: Constify scmi_perf_ops pointers
  firmware: arm_scmi: Constify ops pointers in scmi_handle
  firmware: arm_scmi: Constify static scmi-ops

 drivers/cpufreq/scmi-cpufreq.c      |  6 +++---
 drivers/firmware/arm_scmi/clock.c   |  2 +-
 drivers/firmware/arm_scmi/common.h  |  2 +-
 drivers/firmware/arm_scmi/mailbox.c |  2 +-
 drivers/firmware/arm_scmi/notify.c  |  2 +-
 drivers/firmware/arm_scmi/perf.c    |  2 +-
 drivers/firmware/arm_scmi/power.c   |  2 +-
 drivers/firmware/arm_scmi/reset.c   |  2 +-
 drivers/firmware/arm_scmi/sensors.c |  2 +-
 drivers/firmware/arm_scmi/smc.c     |  2 +-
 include/linux/scmi_protocol.h       | 12 ++++++------
 11 files changed, 18 insertions(+), 18 deletions(-)

Comments

Sudeep Holla Sept. 8, 2020, 12:51 p.m. UTC | #1
On Mon, 7 Sep 2020 01:04:49 +0200, Rikard Falkeborn wrote:
> A small patch series aiming to constify static scmi_*_ops structs in
> drivers/firmware/arm_scmi. Since these are not modified, constify them
> to allow the compiler to put them in read-only memory.
> 
> Rikard Falkeborn (3):
>   cpufreq: arm_scmi: Constify scmi_perf_ops pointers
>   firmware: arm_scmi: Constify ops pointers in scmi_handle
>   firmware: arm_scmi: Constify static scmi-ops
> 
> [...]


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

[1/3] cpufreq: arm_scmi: Constify scmi_perf_ops pointers
      https://git.kernel.org/sudeep.holla/c/69ecb3230b
[2/3] firmware: arm_scmi: Constify ops pointers in scmi_handle
      https://git.kernel.org/sudeep.holla/c/82894c1d39
[3/3] firmware: arm_scmi: Constify static scmi-ops
      https://git.kernel.org/sudeep.holla/c/3de7b83017

--

Regards,
Sudeep