aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h
diff options
context:
space:
mode:
authorPaulo Miguel Almeida <[email protected]>2022-10-29 01:30:44 +0000
committerAlex Deucher <[email protected]>2022-11-04 20:05:53 +0000
commit320e2590e281d0a7865e861f50155b5b435e9813 (patch)
treea09dae4217676184e7e1289378aaf8422820430a /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h
parentdrm/radeon: Replace one-element array with flexible-array member (diff)
downloadkernel-320e2590e281d0a7865e861f50155b5b435e9813.tar.gz
kernel-320e2590e281d0a7865e861f50155b5b435e9813.zip
drm/amdgpu: 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. 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 <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h')
0 files changed, 0 insertions, 0 deletions