linux/drivers/gpu/drm/amd/display/dc/bios
Paulo Miguel Almeida bd3fe587f8 drm/amdgpu: Replace one-elements array with flex-array members
One-element arrays are deprecated, and we are replacing them with
flexible array members instead. So, replace one-element array with
flexible-array member in structs ATOM_I2C_VOLTAGE_OBJECT_V3,
ATOM_ASIC_INTERNAL_SS_INFO_V2, ATOM_ASIC_INTERNAL_SS_INFO_V3,
and refactor the rest of the code accordingly.

Important to mention is that doing a build before/after this patch
results in no functional binary output differences.

This helps with the ongoing efforts to tighten the FORTIFY_SOURCE
routines on memcpy() and help us make progress towards globally
enabling -fstrict-flex-arrays=3 [1].

Link: https://github.com/KSPP/linux/issues/79
Link: https://github.com/KSPP/linux/issues/238
Link: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101836 [1]

Signed-off-by: Paulo Miguel Almeida <paulo.miguel.almeida.rodenas@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2022-11-15 13:35:16 -05:00
..
dce60
dce80
dce110
dce112
Makefile
bios_parser.c drm/amdgpu: Replace one-elements array with flex-array members 2022-11-15 13:35:16 -05:00
bios_parser.h
bios_parser2.c drm/amd/display: fix array index out of bound error in bios parser 2022-11-15 13:35:14 -05:00
bios_parser2.h
bios_parser_common.c drm/amd/display: Add support for USBC connector 2022-03-31 23:05:53 -04:00
bios_parser_common.h
bios_parser_helper.c
bios_parser_helper.h
bios_parser_interface.c
bios_parser_types_internal.h
bios_parser_types_internal2.h drm/amd/display: Add dependant changes for DCN32/321 2022-06-03 16:43:38 -04:00
command_table.c drm/amd/display: Fix USBC link creation 2022-06-03 16:43:38 -04:00
command_table.h
command_table2.c
command_table2.h
command_table_helper.c
command_table_helper.h
command_table_helper2.c drm/amd/display: Enable DCN314 in DC 2022-07-13 20:57:05 -04:00
command_table_helper2.h
command_table_helper_struct.h