From 84e78429c7a9eddbd5af6ff3fb39b231bd83941b Mon Sep 17 00:00:00 2001 From: Robin Kastberg Date: Thu, 14 Nov 2024 19:28:28 +0100 Subject: [PATCH] kernel: make z_is_idle_thread_entry take code ptr This is causing errors on IAR toolchain. Signed-off-by: Robin Kastberg --- kernel/include/kthread.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/include/kthread.h b/kernel/include/kthread.h index d6d1b629b99d3..e2505f65b3b96 100644 --- a/kernel/include/kthread.h +++ b/kernel/include/kthread.h @@ -225,7 +225,7 @@ static ALWAYS_INLINE bool should_preempt(struct k_thread *thread, } -static inline bool z_is_idle_thread_entry(void *entry_point) +static inline bool z_is_idle_thread_entry(k_thread_entry_t entry_point) { return entry_point == idle; }