1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/nouveau/include/nvfw
Kees Cook 54d47689c6 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
2023-01-16 18:18:12 +01:00
..
acr.h drm/nouveau/acr/ga102: initial support 2022-11-09 10:45:21 +10:00
flcn.h drm/nouveau/acr: implement new subdev to replace "secure boot" 2020-01-15 10:50:29 +10:00
fw.h drm/nouveau/acr: add loaders for currently available LS firmware images 2020-01-15 10:50:26 +10:00
hs.h drm/nouveau/fb/ga102: Replace zero-length array of trailing structs with flex-array 2023-01-16 18:18:12 +01:00
ls.h drm/nouveau/acr/ga102: initial support 2022-11-09 10:45:21 +10:00
pmu.h drm/nouveau/nvfw: firmware structures should begin with nvfw_ 2020-07-24 18:50:47 +10:00
sec2.h drm/nouveau/acr/ga102: initial support 2022-11-09 10:45:21 +10:00