Substitute zero-length array defined in scmi_base_error_report with a flexible length array definition.
Showing the changes to include/linux (1 of 1 file). Show all
Unified · Split
| @@ -421,7 +421,7 @@ struct scmi_base_error_report { · 420 unmodified lines | ||
| 421 | 421 | u32 agent_id; |
| 422 | 422 | bool fatal; |
| 423 | 423 | u16 cmd_count; |
| 424 | − u64 reports[0]; | |
| 424 | + u64 reports[]; | |
| 425 | 425 | }; |
| 426 | 426 | |
| 427 | 427 | #endif /* _LINUX_SCMI_PROTOCOL_H */ |