[PATCH 3/4] firmware: arm_scmi: Fix scmi_event_header fields typing
Cristian Marussi
cristian.marussi at arm.com
Wed Jul 8 08:22:47 EDT 2020
Drop size_t in favour of fixed size u32 for consistency and shuffle
around fields definitions to minimize implicit padding.
Signed-off-by: Cristian Marussi <cristian.marussi at arm.com>
---
drivers/firmware/arm_scmi/notify.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/firmware/arm_scmi/notify.c b/drivers/firmware/arm_scmi/notify.c
index 752415367305..f441da28d91f 100644
--- a/drivers/firmware/arm_scmi/notify.c
+++ b/drivers/firmware/arm_scmi/notify.c
@@ -254,10 +254,10 @@ struct events_queue {
* queueing it on the related &struct events_queue.
*/
struct scmi_event_header {
- u64 timestamp;
- u8 evt_id;
- size_t payld_sz;
- u8 payld[];
+ u64 timestamp;
+ u32 payld_sz;
+ u8 evt_id;
+ u8 payld[];
};
struct scmi_registered_event;
--
2.17.1
More information about the linux-arm-kernel
mailing list