diff options
author | 2023-01-03 15:48:36 -0800 | |
---|---|---|
committer | 2023-01-16 18:18:12 +0100 | |
commit | 54d47689c6e3892ddb24004e07bfcb3f23aa0222 (patch) | |
tree | e80d26c5f69c942b7651154dd0ffa84571df8e67 /drivers/gpu/drm/bridge/cadence/cdns-dsi-core.h | |
parent | drm/bridge: tc358767: Set default CLRSIPO count (diff) | |
download | wireguard-linux-54d47689c6e3892ddb24004e07bfcb3f23aa0222.tar.xz wireguard-linux-54d47689c6e3892ddb24004e07bfcb3f23aa0222.zip |
drm/nouveau/fb/ga102: Replace zero-length array of trailing structs with flex-array
Zero-length arrays are deprecated[1] and are being replaced with
flexible array members in support of the ongoing efforts to tighten the
FORTIFY_SOURCE routines on memcpy(), correctly instrument array indexing
with UBSAN_BOUNDS, and to globally enable -fstrict-flex-arrays=3.
Replace zero-length array with flexible-array member.
This results in no differences in binary output.
[1] https://github.com/KSPP/linux/issues/78
Cc: Ben Skeggs <bskeggs@redhat.com>
Cc: Karol Herbst <kherbst@redhat.com>
Cc: Lyude Paul <lyude@redhat.com>
Cc: David Airlie <airlied@gmail.com>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: Gourav Samaiya <gsamaiya@nvidia.com>
Cc: "Gustavo A. R. Silva" <gustavoars@kernel.org>
Cc: dri-devel@lists.freedesktop.org
Cc: nouveau@lists.freedesktop.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230103234835.never.378-kees@kernel.org
Diffstat (limited to 'drivers/gpu/drm/bridge/cadence/cdns-dsi-core.h')
0 files changed, 0 insertions, 0 deletions