From: jing yangyang <jing.yangyang@xxxxxxxxxx> Fix the following coccicheck warning: ./drivers/staging/media/ipu3/ipu3-css-fw.h:174:21-34:i WARNING: use flexible-array member instead Reported-by: Zeal Robot <zealci@xxxxxxxxxx> Signed-off-by: jing yangyang <jing.yangyang@xxxxxxxxxx> --- drivers/staging/media/ipu3/ipu3-css-fw.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/ipu3/ipu3-css-fw.h b/drivers/staging/media/ipu3/ipu3-css-fw.h index 3c078f1..c0bc57f 100644 --- a/drivers/staging/media/ipu3/ipu3-css-fw.h +++ b/drivers/staging/media/ipu3/ipu3-css-fw.h @@ -171,7 +171,7 @@ struct imgu_fw_bi_file_h { struct imgu_fw_header { struct imgu_fw_bi_file_h file_header; - struct imgu_fw_info binary_header[1]; /* binary_nr items */ + struct imgu_fw_info binary_header[]; /* binary_nr items */ }; /******************* Firmware functions *******************/ -- 1.8.3.1