Paulo Miguel Almeida c81c5bd5cf drm/radeon: Replace one-element array with flexible-array member
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 struct _ATOM_FAKE_EDID_PATCH_RECORD and
refactor the rest of the code accordingly.

It's worth mentioning that doing a build before/after this patch results
in no 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/239
Link: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101836 [1]

Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Paulo Miguel Almeida <paulo.miguel.almeida.rodenas@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2022-11-04 16:05:53 -04:00
..
2022-04-25 11:17:45 +02:00
2019-12-18 16:09:13 -05:00
2019-06-10 22:30:24 +02:00
2022-01-18 17:43:36 -05:00
2019-06-10 22:30:24 +02:00
2022-08-23 16:53:43 -04:00
2022-01-18 17:43:36 -05:00
2022-01-18 17:43:36 -05:00
2021-02-21 14:44:44 -08:00
2022-07-25 09:31:02 -04:00
2022-05-03 16:08:48 +10:00
2019-06-10 22:30:24 +02:00
2022-01-18 17:43:36 -05:00
2020-09-22 17:37:38 -04:00
2020-09-22 17:37:38 -04:00
2020-09-22 17:37:38 -04:00