linux-yocto/drivers/gpu/drm/amd/include
Paulo Miguel Almeida fe302ce375 drm/amdgpu: Replace one-element array with flexible-array member
[ Upstream commit 320e2590e2 ]

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: 8155566a26 ("drm/amdgpu: properly handle vbios fake edid sizing")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-10-17 15:20:50 +02:00
..
asic_reg
ivsrcid
aldebaran_ip_offset.h
amd_acpi.h
amd_pcie_helpers.h
amd_pcie.h
amd_shared.h drm/amd: Add concept of running prepare_suspend() sequence for IP blocks 2024-04-10 16:28:28 +02:00
arct_ip_offset.h
atom-bits.h
atom-names.h
atom-types.h
atombios.h drm/amdgpu: Replace one-element array with flexible-array member 2024-10-17 15:20:50 +02:00
atomfirmware.h drm/amdgpu/atomfirmware: Silence UBSAN warning 2024-09-18 19:23:06 +02:00
atomfirmwareid.h
beige_goby_ip_offset.h
cgs_common.h
cik_structs.h
cyan_skillfish_ip_offset.h
dimgrey_cavefish_ip_offset.h
discovery.h
displayobject.h
dm_pp_interface.h
kgd_kfd_interface.h
kgd_pp_interface.h
mes_api_def.h
mes_v11_api_def.h
navi10_enum.h
navi10_ip_offset.h
navi12_ip_offset.h
navi14_ip_offset.h
pptable.h
renoir_ip_offset.h
sienna_cichlid_ip_offset.h
soc15_hw_ip.h
soc15_ih_clientid.h
soc21_enum.h
v9_structs.h
v10_structs.h
v11_structs.h
vangogh_ip_offset.h
vega10_enum.h
vega10_ip_offset.h
vega20_ip_offset.h
vi_structs.h
yellow_carp_offset.h