Skip to content
Commit 41e7a72e authored by Wyes Karny's avatar Wyes Karny Committed by Kees Cook
Browse files

acpi: Replace struct acpi_table_slit 1-element array with flex-array



struct acpi_table_slit is used for copying System Locality Information
Table data from ACPI tables. Here `entry` is a flex array but it was
using ancient 1-element fake flexible array, which has been deprecated.
Replace it with a C99 flexible array.

Signed-off-by: default avatarWyes Karny <wyes.karny@amd.com>
Reviewed-by: default avatarKees Cook <keescook@chromium.org>
Fixes: df8fc4e9 ("kbuild: Enable -fstrict-flex-arrays=3")
Signed-off-by: default avatarKees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20230523161815.3083-1-wyes.karny@amd.com
parent 76edc27e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment