diff options
author | Cristian Marussi <cristian.marussi@arm.com> | 2020-07-10 14:39:17 +0100 |
---|---|---|
committer | Sudeep Holla <sudeep.holla@arm.com> | 2020-07-13 09:40:21 +0100 |
commit | 02c003cc18dfb6db1001856fccb978a1179fe89a (patch) | |
tree | 340b9c01b7e362d1ad399bd15158549de3282494 /include/linux/scmi_protocol.h | |
parent | a4ee9d0194c24509333caaeba894ca017e5942c8 (diff) |
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.com
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Diffstat (limited to 'include/linux/scmi_protocol.h')
-rw-r--r-- | include/linux/scmi_protocol.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |