kernel_samsung_a53x/drivers/gpu/drm/amd/include
Paulo Miguel Almeida 8fae68c46a drm/amdgpu: Replace one-element array with flexible-array member
[ Upstream commit 320e2590e281d0a7865e861f50155b5b435e9813 ]

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.

Important to mention is 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/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>
Stable-dep-of: 8155566a26b8 ("drm/amdgpu: properly handle vbios fake edid sizing")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:21:21 +01:00
..
asic_reg Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ivsrcid Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
amd_acpi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
amd_pcie.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
amd_pcie_helpers.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
amd_shared.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
arct_ip_offset.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
atom-bits.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
atom-names.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
atom-types.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
atombios.h drm/amdgpu: Replace one-element array with flexible-array member 2024-11-23 23:21:21 +01:00
atomfirmware.h drm/amdgpu/atomfirmware: silence UBSAN warning 2024-11-19 14:19:42 +01:00
atomfirmwareid.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cgs_common.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cik_structs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
discovery.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
displayobject.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dm_pp_interface.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
kgd_kfd_interface.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
kgd_pp_interface.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
navi10_enum.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
navi10_ip_offset.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
navi12_ip_offset.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
navi14_ip_offset.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pptable.h drm/amd: Fix UBSAN array-index-out-of-bounds for SMU7 2024-11-18 11:43:13 +01:00
renoir_ip_offset.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sienna_cichlid_ip_offset.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
soc15_hw_ip.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
soc15_ih_clientid.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
v9_structs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
v10_structs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vega10_enum.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vega10_ip_offset.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vega20_ip_offset.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vi_structs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00