From d21d8f49fc0a10d862199f4bb83e1ba4eea5a14c Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Tue, 23 Dec 2025 22:43:47 +0000 Subject: [PATCH] firmware: fix misdefinition of QUEUE_GET_THREAD macro This tries to access 'struct event_queue->send', but that is only available if HAVE_EXTENDED_MESSAGING_AND_NAME is set. This is not defined for bootloaders; this is a problem when trying to build a bootloader with debugging enabled, because the misdefined macro is used in some KERNEL_ASSERTs that get compiled out on non-debug builds. Change-Id: I334eedcda1ee7047c8dddcb7fa0c9717156f2a0a --- firmware/kernel/include/queue.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/kernel/include/queue.h b/firmware/kernel/include/queue.h index da03f5312e..407555a871 100644 --- a/firmware/kernel/include/queue.h +++ b/firmware/kernel/include/queue.h @@ -100,7 +100,7 @@ struct queue_sender_list }; #endif /* HAVE_EXTENDED_MESSAGING_AND_NAME */ -#ifdef HAVE_PRIORITY_SCHEDULING +#if defined(HAVE_EXTENDED_MESSAGING_AND_NAME) #define QUEUE_GET_THREAD(q) \ (((q)->send == NULL) ? NULL : (q)->send->blocker.thread) #else