kernel/msg_q: reorder _K_MSGQ_INITIALIZER() initializers
This is a trivial change to satisfy C++, which requires that designated
initializers appear in the same order as the members they initialize.
Fixes: #14540
Signed-off-by: Charles E. Youse <charles.youse@intel.com>
diff --git a/include/kernel.h b/include/kernel.h
index ac3a3f0..c698e55 100644
--- a/include/kernel.h
+++ b/include/kernel.h
@@ -3173,8 +3173,8 @@
#define _K_MSGQ_INITIALIZER(obj, q_buffer, q_msg_size, q_max_msgs) \
{ \
.wait_q = Z_WAIT_Q_INIT(&obj.wait_q), \
- .max_msgs = q_max_msgs, \
.msg_size = q_msg_size, \
+ .max_msgs = q_max_msgs, \
.buffer_start = q_buffer, \
.buffer_end = q_buffer + (q_max_msgs * q_msg_size), \
.read_ptr = q_buffer, \