]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
media: venus: hfi_cmds: struct hfi_session_release_buffer_pkt: Replace 1-element...
authorKees Cook <kees@kernel.org>
Wed, 10 Jul 2024 23:09:12 +0000 (16:09 -0700)
committerKees Cook <kees@kernel.org>
Thu, 22 Aug 2024 23:59:48 +0000 (16:59 -0700)
Replace the deprecated[1] use of a 1-element array in
struct hfi_session_release_buffer_pkt with a modern flexible array.

No binary differences are present after this conversion.

Link: https://github.com/KSPP/linux/issues/79
Reviewed-by: Vikash Garodia <quic_vgarodia@quicinc.com>
Reviewed-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Reviewed-by: Dikshita Agarwal <quic_dikshita@quicinc.com>
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Acked-by: Vikash Garodia <quic_vgarodia@quicinc.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://lore.kernel.org/r/20240710230914.3156277-1-kees@kernel.org
Signed-off-by: Kees Cook <kees@kernel.org>
drivers/media/platform/qcom/venus/hfi_cmds.h

index 20acd412ee7b9116f79c9ad6bde89db30f18a7e5..42825f07939da4786fa2b9464cf2e4eb33686329 100644 (file)
@@ -227,7 +227,7 @@ struct hfi_session_release_buffer_pkt {
        u32 extradata_size;
        u32 response_req;
        u32 num_buffers;
-       u32 buffer_info[1];
+       u32 buffer_info[];
 };
 
 struct hfi_session_release_resources_pkt {