From 680ec0bad729e2cae0d92df40400bbd52f7d411e Mon Sep 17 00:00:00 2001 From: Toby Firth Date: Mon, 5 Oct 2020 13:45:47 +0100 Subject: [PATCH] queue: Fixed using incorrect init macro k_queue uses a sflist. The macro used for initialising the list is the slist not sflist macro. This commit just changes the macro to use the sflist init macro. Fixes #28912 Signed-off-by: Toby Firth --- include/kernel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/kernel.h b/include/kernel.h index 470f1430940..0804ded8225 100644 --- a/include/kernel.h +++ b/include/kernel.h @@ -2147,7 +2147,7 @@ struct k_queue { #define Z_QUEUE_INITIALIZER(obj) \ { \ - .data_q = SYS_SLIST_STATIC_INIT(&obj.data_q), \ + .data_q = SYS_SFLIST_STATIC_INIT(&obj.data_q), \ .lock = { }, \ .wait_q = Z_WAIT_Q_INIT(&obj.wait_q), \ _POLL_EVENT_OBJ_INIT(obj) \