[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200708122248.52771-1-cristian.marussi@arm.com>
Date: Wed, 8 Jul 2020 13:22:45 +0100
From: Cristian Marussi <cristian.marussi@....com>
To: linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org
Cc: sudeep.holla@....com, cristian.marussi@....com
Subject: [PATCH 1/4] 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.
Signed-off-by: Cristian Marussi <cristian.marussi@....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
Powered by blists - more mailing lists