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: Skylake: 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
58844 5282 56 64182 fab6 sound/soc/intel/skylake/skl-topology.o

After:
text data bss dec hex filename
59004 5122 56 64182 fab6 sound/soc/intel/skylake/skl-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/48f096b6dc617ecf3ca53211c2a696a4df33b21a.1715526069.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Christophe JAILLET and committed by
Mark Brown
9ff6aaf0 4a341101

+1 -1
+1 -1
sound/soc/intel/skylake/skl-topology.c
··· 3470 3470 return 0; 3471 3471 } 3472 3472 3473 - static struct snd_soc_tplg_ops skl_tplg_ops = { 3473 + static const struct snd_soc_tplg_ops skl_tplg_ops = { 3474 3474 .widget_load = skl_tplg_widget_load, 3475 3475 .control_load = skl_tplg_control_load, 3476 3476 .bytes_ext_ops = skl_tlv_ops,