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
This commit is contained in:
Aidan MacDonald 2025-12-23 22:43:47 +00:00 committed by Solomon Peachy
parent aaee78586a
commit d21d8f49fc

View file

@ -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