]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: Intel: avs: Constify struct snd_soc_tplg_ops
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 13 May 2024 17:37:21 +0000 (19:37 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 27 May 2024 00:31:16 +0000 (01:31 +0100)
commite51c001faa59fd751ef16bac6cf373fb7fc91e9c
treeaa178e793099ed9af3f582dfd76726d8c875d780
parent734447685ecc7c6328e40cb1bd4aaeeac03c1413
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>
sound/soc/intel/avs/topology.c