]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: intel: Constify struct snd_soc_ops
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 13 May 2024 17:57:16 +0000 (19:57 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 27 May 2024 00:31:24 +0000 (01:31 +0100)
commited2581305360725381190bc442918e4e5b2b8545
tree555f28d6f9a1cf817f0031145e78374d325db57b
parent5dfd8f78b57641530bb674791b66b4ae8a8417f5
ASoC: intel: Constify struct snd_soc_ops

Constifying "struct snd_soc_ops" moves some data to a read-only section, so
increase overall security.

This structure is also part of scripts/const_structs.checkpatch.

As an example, on a x86_64, with allmodconfig:
Before:
   text    data     bss     dec     hex filename
   6315    3696       0   10011    271b sound/soc/intel/boards/ehl_rt5660.o

After:
   text    data     bss     dec     hex filename
   6379    3648       0   10027    272b sound/soc/intel/boards/ehl_rt5660.o

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://msgid.link/r/2f0613bf4c6018569cdaac876d0589e49cf38a80.1715622793.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Mark Brown <broonie@kernel.org>
14 files changed:
sound/soc/intel/boards/bdw-rt5650.c
sound/soc/intel/boards/ehl_rt5660.c
sound/soc/intel/boards/kbl_da7219_max98357a.c
sound/soc/intel/boards/kbl_da7219_max98927.c
sound/soc/intel/boards/kbl_rt5660.c
sound/soc/intel/boards/kbl_rt5663_max98927.c
sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c
sound/soc/intel/boards/sof_es8336.c
sound/soc/intel/boards/sof_nau8825.c
sound/soc/intel/boards/sof_realtek_common.c
sound/soc/intel/boards/sof_rt5682.c
sound/soc/intel/boards/sof_sdw_common.h
sound/soc/intel/boards/sof_sdw_rt_amp.c
sound/soc/intel/boards/sof_wm8804.c