mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-09 14:50:19 +00:00
media: venus: Refactor hfi_session_empty_buffer_compressed_pkt
The single element array data[1] is never used. Replace it with a padding field of the same size. This fixes the following cocci warning: drivers/media/platform/qcom/venus/hfi_cmds.h:146:5-9: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) Signed-off-by: Ricardo Ribalda <ribalda@chromium.org> Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> Acked-by: Vikash Garodia <quic_vgarodia@quicinc.com> Signed-off-by: Stanimir Varbanov <stanimir.k.varbanov@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
This commit is contained in:
parent
3a5fde16fc
commit
fd69488275
@ -151,7 +151,7 @@ struct hfi_session_empty_buffer_compressed_pkt {
|
||||
u32 input_tag;
|
||||
u32 packet_buffer;
|
||||
u32 extradata_buffer;
|
||||
u32 data[1];
|
||||
u32 data;
|
||||
};
|
||||
|
||||
struct hfi_session_empty_buffer_uncompressed_plane0_pkt {
|
||||
|
Loading…
x
Reference in New Issue
Block a user