Skip to content

Commit 41e7a72

Browse files
wkarnykees
authored andcommitted
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: Wyes Karny <[email protected]> Reviewed-by: Kees Cook <[email protected]> Fixes: df8fc4e ("kbuild: Enable -fstrict-flex-arrays=3") Signed-off-by: Kees Cook <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 76edc27 commit 41e7a72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/acpi/actbl3.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ struct acpi_table_slic {
8686
struct acpi_table_slit {
8787
struct acpi_table_header header; /* Common ACPI table header */
8888
u64 locality_count;
89-
u8 entry[1]; /* Real size = localities^2 */
89+
u8 entry[]; /* Real size = localities^2 */
9090
};
9191

9292
/*******************************************************************************

0 commit comments

Comments
 (0)