imx.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 00/14] ASoC: Constify local snd_sof_dsp_ops
@ 2024-04-26  9:03 Krzysztof Kozlowski
  2024-04-26  9:03 ` [PATCH v2 01/14] ASoC: SOF: debug: " Krzysztof Kozlowski
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: Krzysztof Kozlowski @ 2024-04-26  9:03 UTC (permalink / raw)
  To: Pierre-Louis Bossart, Liam Girdwood, Peter Ujfalusi, Bard Liao,
	Ranjani Sridharan, Daniel Baluta, Kai Vehmanen, Mark Brown,
	Jaroslav Kysela, Takashi Iwai, Shawn Guo, Sascha Hauer,
	Pengutronix Kernel Team, Fabio Estevam, Matthias Brugger,
	AngeloGioacchino Del Regno
  Cc: sound-open-firmware, linux-sound, linux-kernel, imx,
	linux-arm-kernel, linux-mediatek, Krzysztof Kozlowski

Hi,

Changes in v2
=============
- Only rebase on for-next of broonie/sound.git
- Add tags.
- Link to v1: https://lore.kernel.org/r/20240414-n-const-ops-var-v1-0-8f53ee5d981c@kernel.org

Description
===========
The core code does not modify the 'struct snd_sof_dsp_ops' passed via
pointer in various places, so this can be made pointer to const in few
places.  This in turn allows few drivers to have the local (usually
static) 'struct snd_sof_dsp_ops' as const which increased code safety,
as it is now part of rodata.

Not all drivers can be made safer that way. Intel and AMD rely on
customizing that 'struct snd_sof_dsp_ops' before passing to SOF, so they
won't benefit.  They don't lose anything., either.

All further patches depend on the first four patches.

Best regards,
Krzysztof

---
Krzysztof Kozlowski (14):
      ASoC: SOF: debug: Constify local snd_sof_dsp_ops
      ASoC: SOF: ipc3: Constify local snd_sof_dsp_ops
      ASoC: SOF: pcm: Constify local snd_sof_dsp_ops
      ASoC: SOF: Constify stored pointer to snd_sof_dsp_ops
      ASoC: SOF: intel: pci-tng: Constify snd_sof_dsp_ops
      ASoC: SOF: intel: hda: Constify snd_sof_dsp_ops
      ASoC: SOF: amd: acp: Constify snd_sof_dsp_ops
      ASoC: SOF: imx8: Constify snd_sof_dsp_ops
      ASoC: SOF: imx8m: Constify snd_sof_dsp_ops
      ASoC: SOF: imx8ulp: Constify snd_sof_dsp_ops
      ASoC: SOF: intel: bdw: Constify snd_sof_dsp_ops
      ASoC: SOF: intel: byt: Constify snd_sof_dsp_ops
      ASoC: SOF: mediatek: mt8186: Constify snd_sof_dsp_ops
      ASoC: SOF: mediatek: mt8195: Constify snd_sof_dsp_ops

 include/sound/sof.h                    | 2 +-
 sound/soc/sof/amd/acp-common.c         | 2 +-
 sound/soc/sof/amd/acp.h                | 2 +-
 sound/soc/sof/debug.c                  | 2 +-
 sound/soc/sof/imx/imx8.c               | 4 ++--
 sound/soc/sof/imx/imx8m.c              | 2 +-
 sound/soc/sof/imx/imx8ulp.c            | 2 +-
 sound/soc/sof/intel/bdw.c              | 2 +-
 sound/soc/sof/intel/byt.c              | 4 ++--
 sound/soc/sof/intel/hda-common-ops.c   | 2 +-
 sound/soc/sof/intel/hda.h              | 2 +-
 sound/soc/sof/intel/pci-tng.c          | 2 +-
 sound/soc/sof/intel/shim.h             | 2 +-
 sound/soc/sof/ipc3-priv.h              | 6 +++---
 sound/soc/sof/mediatek/mt8186/mt8186.c | 2 +-
 sound/soc/sof/mediatek/mt8195/mt8195.c | 2 +-
 sound/soc/sof/pcm.c                    | 2 +-
 17 files changed, 21 insertions(+), 21 deletions(-)
---
base-commit: efdfbbc4dcc8f98754056971f88af0f7ff906144
change-id: 20240414-n-const-ops-var-136f395b374b

Best regards,
-- 
Krzysztof Kozlowski <krzk@kernel.org>


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

end of thread, other threads:[~2024-05-01 13:43 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-26  9:03 [PATCH v2 00/14] ASoC: Constify local snd_sof_dsp_ops Krzysztof Kozlowski
2024-04-26  9:03 ` [PATCH v2 01/14] ASoC: SOF: debug: " Krzysztof Kozlowski
2024-04-26  9:03 ` [PATCH v2 02/14] ASoC: SOF: ipc3: " Krzysztof Kozlowski
2024-04-26  9:03 ` [PATCH v2 03/14] ASoC: SOF: pcm: " Krzysztof Kozlowski
2024-04-26  9:03 ` [PATCH v2 04/14] ASoC: SOF: Constify stored pointer to snd_sof_dsp_ops Krzysztof Kozlowski
2024-04-26  9:03 ` [PATCH v2 05/14] ASoC: SOF: intel: pci-tng: Constify snd_sof_dsp_ops Krzysztof Kozlowski
2024-04-26  9:03 ` [PATCH v2 06/14] ASoC: SOF: intel: hda: " Krzysztof Kozlowski
2024-04-26  9:03 ` [PATCH v2 07/14] ASoC: SOF: amd: acp: " Krzysztof Kozlowski
2024-04-26  9:03 ` [PATCH v2 08/14] ASoC: SOF: imx8: " Krzysztof Kozlowski
2024-04-26  9:03 ` [PATCH v2 09/14] ASoC: SOF: imx8m: " Krzysztof Kozlowski
2024-04-26  9:03 ` [PATCH v2 10/14] ASoC: SOF: imx8ulp: " Krzysztof Kozlowski
2024-04-26  9:03 ` [PATCH v2 11/14] ASoC: SOF: intel: bdw: " Krzysztof Kozlowski
2024-04-26  9:03 ` [PATCH v2 12/14] ASoC: SOF: intel: byt: " Krzysztof Kozlowski
2024-04-26  9:04 ` [PATCH v2 13/14] ASoC: SOF: mediatek: mt8186: " Krzysztof Kozlowski
2024-04-26  9:04 ` [PATCH v2 14/14] ASoC: SOF: mediatek: mt8195: " Krzysztof Kozlowski
2024-05-01 13:43 ` [PATCH v2 00/14] ASoC: Constify local snd_sof_dsp_ops Mark Brown

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).