]> git.ipfire.org Git - thirdparty/linux.git/commit
ALSA: aoa: Constify struct codec_connection
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Thu, 26 Feb 2026 20:44:10 +0000 (21:44 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sat, 28 Feb 2026 08:33:15 +0000 (09:33 +0100)
commita69f67702091429316bf7b8dd2c7a405e8c26a65
treed1df24ca4ff8518077d99b0a851c2c23a5b46a4d
parent84446536f63d471ab16b2faa25eeab1df21ace0a
ALSA: aoa: Constify struct codec_connection

'struct codec_connection' are not modified in this driver.

Constifying these structures moves some data to a read-only section, so
increases overall security.

On a x86_64, with allmodconfig:
Before:
======
   text    data     bss     dec     hex filename
  10034    3392      12   13438    347e sound/aoa/fabrics/layout.o

After:
=====
   text    data     bss     dec     hex filename
  10370    3040      12   13422    346e sound/aoa/fabrics/layout.o

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://patch.msgid.link/4009c337cc1a1a57795562279270c03687973b3b.1772138640.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/aoa/aoa.h
sound/aoa/fabrics/layout.c