mbox series

[0/2,next] media: venus: hfi_cmds: Replace one-element array with flexible-array member

Message ID cover.1684278538.git.gustavoars@kernel.org (mailing list archive)
Headers show
Series media: venus: hfi_cmds: Replace one-element array with flexible-array member | expand

Message

Gustavo A. R. Silva May 16, 2023, 11:14 p.m. UTC
Hi!

This series aims to replace one-element arrays with flexible-array
members in struct hfi_session_set_buffers_pkt.

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/160
Link: https://github.com/KSPP/linux/issues/292
Link: https://gcc.gnu.org/pipermail/gcc-patches/2022-October/602902.html [1]

Gustavo A. R. Silva (2):
  media: venus: hfi_cmds: Replace one-element array with flexible-array
    member
  media: venus: hfi_cmds: Use struct_size() helper

 drivers/media/platform/qcom/venus/hfi_cmds.c | 16 ++++++++--------
 drivers/media/platform/qcom/venus/hfi_cmds.h |  2 +-
 2 files changed, 9 insertions(+), 9 deletions(-)