aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
diff options
context:
space:
mode:
authorPaulo Miguel Almeida <[email protected]>2022-11-13 07:44:05 +0000
committerAlex Deucher <[email protected]>2022-11-15 18:35:16 +0000
commitbd3fe587f8989cd06209927abd71ee0af13cca4a (patch)
treeca13dfb1b7fc74dafed421f131ff606dec65ade7 /drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
parentdrm/amd/pm: fix SMU13 runpm hang due to unintentional workaround (diff)
downloadkernel-bd3fe587f8989cd06209927abd71ee0af13cca4a.tar.gz
kernel-bd3fe587f8989cd06209927abd71ee0af13cca4a.zip
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 <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c')
0 files changed, 0 insertions, 0 deletions