linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] drivers/perf: Constify static struct attribute_group
@ 2021-01-17 21:28 Rikard Falkeborn
  2021-01-17 21:28 ` [PATCH 1/4] perf: qcom: " Rikard Falkeborn
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Rikard Falkeborn @ 2021-01-17 21:28 UTC (permalink / raw)
  To: Will Deacon, Mark Rutland
  Cc: Frank Li, Shawn Guo, Sascha Hauer, Pengutronix Kernel Team,
	Fabio Estevam, NXP Linux Team, Shaokun Zhang, Andy Gross,
	Bjorn Andersson, linux-arm-kernel, linux-kernel, linux-arm-msm,
	Rikard Falkeborn

Thie series makes a number of static struct attribute_group const. The
only usage of the structs is to put their address in an array of pointers
to const struct * attribute_group. With this series applied, all but two
static struct attribute_group in drivers/perf are const (and the two
remaining are modified at runtime and can't be const).

Patches are independent and split based on output from get_maintainers.pl.
I can of course split differently if that's desired.

Done with the help of coccinelle.

Rikard Falkeborn (4):
  perf: qcom: Constify static struct attribute_group
  perf/imx_ddr: Constify static struct attribute_group
  perf: hisi: Constify static struct attribute_group
  perf: Constify static struct attribute_group

 drivers/perf/arm-cci.c                        |  2 +-
 drivers/perf/arm-cmn.c                        |  2 +-
 drivers/perf/arm_dmc620_pmu.c                 |  4 ++--
 drivers/perf/arm_pmu.c                        |  2 +-
 drivers/perf/arm_smmuv3_pmu.c                 |  8 ++++----
 drivers/perf/arm_spe_pmu.c                    |  6 +++---
 drivers/perf/fsl_imx8_ddr_perf.c              | 10 +++++-----
 drivers/perf/hisilicon/hisi_uncore_ddrc_pmu.c |  2 +-
 drivers/perf/hisilicon/hisi_uncore_hha_pmu.c  |  2 +-
 drivers/perf/hisilicon/hisi_uncore_l3c_pmu.c  |  2 +-
 drivers/perf/qcom_l2_pmu.c                    |  6 +++---
 drivers/perf/qcom_l3_pmu.c                    |  6 +++---
 12 files changed, 26 insertions(+), 26 deletions(-)

-- 
2.30.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-01-20 18:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-17 21:28 [PATCH 0/4] drivers/perf: Constify static struct attribute_group Rikard Falkeborn
2021-01-17 21:28 ` [PATCH 1/4] perf: qcom: " Rikard Falkeborn
2021-01-17 21:28 ` [PATCH 2/4] perf/imx_ddr: " Rikard Falkeborn
2021-01-17 21:28 ` [PATCH 3/4] perf: hisi: " Rikard Falkeborn
2021-01-17 21:28 ` [PATCH 4/4] perf: " Rikard Falkeborn
2021-01-20 18:13 ` [PATCH 0/4] drivers/perf: " Will Deacon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).