[1/3] firmware: arm_scmi: Remove zero-length array in SCMI Notifications
diff mbox series

Message ID 20200710133919.39792-1-cristian.marussi@arm.com
State In Next
Commit d3c31b47efef4b7b487ed824298c53f522b62702
Headers show
Series
  • [1/3] firmware: arm_scmi: Remove zero-length array in SCMI Notifications
Related show

Commit Message

Cristian Marussi July 10, 2020, 1:39 p.m. UTC
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(-)

Comments

Sudeep Holla July 13, 2020, 1 p.m. UTC | #1
On Fri, 10 Jul 2020 14:39:17 +0100, Cristian Marussi wrote:
> Substitute zero-length array defined in scmi_base_error_report with
> a flexible length array definition.


Applied to sudeep.holla/linux (for-next/scmi), thanks!

[1/3] firmware: arm_scmi: Remove zero-length array in SCMI notifications
      https://git.kernel.org/sudeep.holla/c/02c003cc18
[2/3] firmware: arm_scmi: Remove unneeded __packed attribute
      https://git.kernel.org/sudeep.holla/c/33ee97f823
[3/3] (korg_sudeep/for-next/scmi) firmware: arm_scmi: Remove fixed size fields from reports/scmi_event_header
      https://git.kernel.org/sudeep.holla/c/72a5eb9d9c

--
Regards,
Sudeep

Patch
diff mbox series

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 */