]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: cs-amp-lib: Annotate struct cirrus_amp_efi_data with __counted_by()
authorThorsten Blum <thorsten.blum@linux.dev>
Tue, 15 Apr 2025 09:03:55 +0000 (11:03 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 15 Apr 2025 11:36:04 +0000 (12:36 +0100)
commitfcdf212fd9b36c299d90229e9546c077db2215ce
treeb4ee75791cb3618f499a81f49fa309cce60bf831
parent46e7ea05bf5d9fe4d05e173c824ae173c956cb5f
ASoC: cs-amp-lib: Annotate struct cirrus_amp_efi_data with __counted_by()

Add the __counted_by() compiler attribute to the flexible array member
'data' to improve access bounds-checking via CONFIG_UBSAN_BOUNDS and
CONFIG_FORTIFY_SOURCE.

No functional changes intended.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://patch.msgid.link/20250415090354.92211-2-thorsten.blum@linux.dev
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/cs-amp-lib.h