提交 02c003cc 编写于 作者: C Cristian Marussi 提交者: Sudeep Holla

firmware: arm_scmi: Remove zero-length array in SCMI notifications

Substitute zero-length array defined in scmi_base_error_report with
a flexible length array definition.

Link: https://lore.kernel.org/r/20200710133919.39792-1-cristian.marussi@arm.comSigned-off-by: NCristian Marussi <cristian.marussi@arm.com>
Signed-off-by: NSudeep Holla <sudeep.holla@arm.com>
上级 a4ee9d01
......@@ -421,7 +421,7 @@ struct scmi_base_error_report {
u32 agent_id;
bool fatal;
u16 cmd_count;
u64 reports[0];
u64 reports[];
};
#endif /* _LINUX_SCMI_PROTOCOL_H */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册