[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200708122248.52771-3-cristian.marussi@arm.com>
Date: Wed, 8 Jul 2020 13:22:47 +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 3/4] firmware: arm_scmi: Fix scmi_event_header fields typing
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@....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
Powered by blists - more mailing lists