]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: SOF: topology: Constify struct snd_soc_tplg_ops
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 13 May 2024 17:37:24 +0000 (19:37 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 27 May 2024 00:31:19 +0000 (01:31 +0100)
commite9c33917932e940348833bf4a1ad3c5ffceb211e
tree144f0618769277b51016fd1d2b95fa51036fd693
parent9ff6aaf0f7e99798afeda974c83e410e9e2c3026
ASoC: SOF: topology: Constify struct snd_soc_tplg_ops

Constifying "struct snd_soc_tplg_ops" moves some data to a read-only
section, so increase overall security.

On a x86_64, with allmodconfig:
Before:
   text    data     bss     dec     hex filename
  44519    2888      48   47455    b95f sound/soc/sof/topology.o

After:
   text    data     bss     dec     hex filename
  44839    2552      48   47439    b94f sound/soc/sof/topology.o

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://msgid.link/r/2d9f5b75e979eb38b6f3baf85dfa1f0fdb3447ef.1715526069.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/topology.c