Messages in this thread Patch in this message | | | From | Cristian Marussi <> | Subject | [PATCH 1/3] firmware: arm_scmi: Remove zero-length array in SCMI Notifications | Date | Fri, 10 Jul 2020 14:39:17 +0100 |
| |
Substitute zero-length array defined in scmi_base_error_report with a flexible length array definition.
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com> --- include/linux/scmi_protocol.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/scmi_protocol.h b/include/linux/scmi_protocol.h index 46d98be92466..7d4348fb7330 100644 --- a/include/linux/scmi_protocol.h +++ b/include/linux/scmi_protocol.h @@ -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 */ -- 2.17.1
| |