Skip to content

Commit 02c003c

Browse files
cris-masudeep-holla
authored andcommitted
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/[email protected] Signed-off-by: Cristian Marussi <[email protected]> Signed-off-by: Sudeep Holla <[email protected]>
1 parent a4ee9d0 commit 02c003c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/scmi_protocol.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ struct scmi_base_error_report {
421421
u32 agent_id;
422422
bool fatal;
423423
u16 cmd_count;
424-
u64 reports[0];
424+
u64 reports[];
425425
};
426426

427427
#endif /* _LINUX_SCMI_PROTOCOL_H */

0 commit comments

Comments
 (0)