Skip to content

Commit c934527

Browse files
committed
media: venus: hfi_cmds: struct hfi_session_release_buffer_pkt: Replace 1-element array with flexible array
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: KSPP#79 [1] 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>
1 parent 5ac86f0 commit c934527

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/media/platform/qcom/venus/hfi_cmds.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ struct hfi_session_release_buffer_pkt {
227227
u32 extradata_size;
228228
u32 response_req;
229229
u32 num_buffers;
230-
u32 buffer_info[1];
230+
u32 buffer_info[];
231231
};
232232

233233
struct hfi_session_release_resources_pkt {

0 commit comments

Comments
 (0)