diff options
| author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2025-11-03 09:32:03 +0300 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2025-11-03 16:14:17 +0300 |
| commit | 1a88479436a52452429f6d50ec5bd0a546406485 (patch) | |
| tree | 6fd9e057681a7495d466b6b5ee3ffb1af7d05bf6 /include/linux/timerqueue.h | |
| parent | 947eaef21577f52db046992c887ed9698f9d883c (diff) | |
| download | linux-1a88479436a52452429f6d50ec5bd0a546406485.tar.xz | |
ASoC: fsl_spdif: Constify some structures
'struct fsl_spdif_soc_data' and 'struct snd_kcontrol_new' are not modified
in this driver.
Constifying these structures moves some data to a read-only section, so
increases overall security, especially when the structure holds some
function pointers.
On a x86_64, with allmodconfig:
Before:
======
text data bss dec hex filename
53548 25576 128 79252 13594 sound/soc/fsl/fsl_spdif.o
After:
=====
text data bss dec hex filename
54828 24296 128 79252 13594 sound/soc/fsl/fsl_spdif.o
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://patch.msgid.link/5fe08f028395a6c6f50d11eee8fdb4a90b1f68ab.1762151503.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
