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: Intel: avs: 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
28046 794 0 28840 70a8 sound/soc/intel/avs/topology.o

After:
text data bss dec hex filename
28206 614 0 28820 7094 sound/soc/intel/avs/topology.o

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Link: https://msgid.link/r/01de0157088de0475970c79738284d6c86d702fe.1715526069.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Christophe JAILLET and committed by
Mark Brown
e51c001f 73444768

+1 -1
+1 -1
sound/soc/intel/avs/topology.c
··· 1889 1889 return 0; 1890 1890 } 1891 1891 1892 - static struct snd_soc_tplg_ops avs_tplg_ops = { 1892 + static const struct snd_soc_tplg_ops avs_tplg_ops = { 1893 1893 .io_ops = avs_control_ops, 1894 1894 .io_ops_count = ARRAY_SIZE(avs_control_ops), 1895 1895 .control_load = avs_control_load,