Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Christophe JAILLET and committed by
Mark Brown
4a341101 e51c001f

+1 -1
+1 -1
sound/soc/qcom/qdsp6/topology.c
··· 1240 1240 audioreach_put_vol_ctrl_audio_mixer, snd_soc_info_volsw}, 1241 1241 }; 1242 1242 1243 - static struct snd_soc_tplg_ops audioreach_tplg_ops = { 1243 + static const struct snd_soc_tplg_ops audioreach_tplg_ops = { 1244 1244 .io_ops = audioreach_io_ops, 1245 1245 .io_ops_count = ARRAY_SIZE(audioreach_io_ops), 1246 1246