]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: qdsp6: audioreach: Constify struct snd_soc_tplg_ops
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 13 May 2024 17:37:22 +0000 (19:37 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 27 May 2024 00:31:17 +0000 (01:31 +0100)
commit4a341101337fc158b993417a9d2085815b0201da
tree487dfd1ab1c7d385cd8983a10f8c5dd2de84cc6d
parente51c001faa59fd751ef16bac6cf373fb7fc91e9c
ASoC: qdsp6: audioreach: 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
  19942     832       0   20774    5126 sound/soc/qcom/qdsp6/topology.o

After:
   text    data     bss     dec     hex filename
  20102     652       0   20754    5112 sound/soc/qcom/qdsp6/topology.o

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