1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
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 drm/amd/display: dc/bios: add support for DCE6 2020-07-27 16:45:58 -04:00
dce80 amdgpu/dc: fix non-ansi function decls. 2017-11-07 16:21:59 -05:00
dce110 drm/amd/display: Delete dead code in command_table_helper 2019-08-23 11:37:04 -05:00
dce112 drm/amdgpu/display: remove dal_cmd_tbl_helper_dcn2_get_table2 2020-10-30 01:02:07 -04:00
bios_parser.c drm/amdgpu: Replace one-elements array with flex-array members 2022-11-15 13:35:16 -05:00
bios_parser.h drm/amd/dc: Add dc display driver (v2) 2017-09-26 17:01:32 -04:00
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 drm/amd/display: Add DCE12 bios parser support 2017-09-26 17:19:04 -04:00
bios_parser_common.c drm/amd/display: Add support for USBC connector 2022-03-31 23:05:53 -04:00
bios_parser_common.h amdgpu/dc: separate out some common code from bios parsers. 2017-09-28 16:51:56 -04:00
bios_parser_helper.c drm/amd/display: remove variable active_disp 2021-06-04 12:40:01 -04:00
bios_parser_helper.h drm/amd/display: add a func to disable accelerated mode 2021-03-23 23:33:36 -04:00
bios_parser_interface.c drm/amd/display: Remove DCE12 guards 2017-09-26 17:19:36 -04:00
bios_parser_types_internal.h drm/amd/dc: Add dc display driver (v2) 2017-09-26 17:01:32 -04:00
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 drm/amd/display: Connect dig_fe to otg directly instead of calling bios 2019-01-25 16:15:37 -05:00
command_table2.c drm/amd/display: Drop DCN for DP2.x logic 2022-01-25 18:00:34 -05:00
command_table2.h drm/amd/display: Added multi instance support for panel control 2021-03-23 23:02:53 -04:00
command_table_helper.c drm/amd/display/dc/bios/command_table_helper: Fix function name for 'dal_cmd_table_helper_transmitter_bp_to_atom()' 2021-05-27 12:33:51 -04:00
command_table_helper.h drm/amd/display: dc/bios: add support for DCE6 2020-07-27 16:45:58 -04:00
command_table_helper2.c drm/amd/display: Enable DCN314 in DC 2022-07-13 20:57:05 -04:00
command_table_helper2.h drm/amd/display: dc/bios: add support for DCE6 2020-07-27 16:45:58 -04:00
command_table_helper_struct.h drm/amd/display: fix incompatible structure layouts 2018-02-19 14:19:18 -05:00
Makefile drm/amd/display: dc/bios: add support for DCE6 2020-07-27 16:45:58 -04:00