diff options
author | Thorsten Blum <thorsten.blum@linux.dev> | 2025-04-14 14:45:28 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2025-04-14 18:08:04 +0300 |
commit | 46e7ea05bf5d9fe4d05e173c824ae173c956cb5f (patch) | |
tree | 3cc27dcea304fd8acacbecce06f06423bd56a88c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 2b4ce994afca0690ab79b7860045e6883e8706db (diff) | |
download | linux-46e7ea05bf5d9fe4d05e173c824ae173c956cb5f.tar.xz |
ASoC: cs-amp-lib: Replace offsetof() with struct_size()
Use struct_size() to calculate the number of bytes to allocate and used
by 'cirrus_amp_efi_data'. Compared to offsetof(), struct_size() provides
additional compile-time checks (e.g., __must_be_array()).
Reviewed-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://patch.msgid.link/20250414114528.355204-2-thorsten.blum@linux.dev
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions