forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/drivers/media/platform/qcom/venus/hfi_msgs.h
....@@ -1,16 +1,7 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Copyright (c) 2012-2016, The Linux Foundation. All rights reserved.
34 * Copyright (C) 2017 Linaro Ltd.
4
- *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License version 2 and
7
- * only version 2 as published by the Free Software Foundation.
8
- *
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU General Public License for more details.
13
- *
145 */
156 #ifndef __VENUS_HFI_MSGS_H__
167 #define __VENUS_HFI_MSGS_H__
....@@ -164,7 +155,7 @@
164155 u32 input_tag;
165156 u32 packet_buffer;
166157 u32 extradata_buffer;
167
- u32 data[0];
158
+ u32 data[];
168159 };
169160
170161 struct hfi_msg_session_fbd_compressed_pkt {
....@@ -184,7 +175,7 @@
184175 u32 picture_type;
185176 u32 packet_buffer;
186177 u32 extradata_buffer;
187
- u32 data[0];
178
+ u32 data[];
188179 };
189180
190181 struct hfi_msg_session_fbd_uncompressed_plane0_pkt {
....@@ -211,7 +202,7 @@
211202 u32 picture_type;
212203 u32 packet_buffer;
213204 u32 extradata_buffer;
214
- u32 data[0];
205
+ u32 data[];
215206 };
216207
217208 struct hfi_msg_session_fbd_uncompressed_plane1_pkt {
....@@ -220,7 +211,7 @@
220211 u32 filled_len;
221212 u32 offset;
222213 u32 packet_buffer2;
223
- u32 data[0];
214
+ u32 data[];
224215 };
225216
226217 struct hfi_msg_session_fbd_uncompressed_plane2_pkt {
....@@ -229,7 +220,7 @@
229220 u32 filled_len;
230221 u32 offset;
231222 u32 packet_buffer3;
232
- u32 data[0];
223
+ u32 data[];
233224 };
234225
235226 struct hfi_msg_session_parse_sequence_header_done_pkt {