From ae5a761f858d05379d9d699f62a575de0438d280 Mon Sep 17 00:00:00 2001 From: Tomasz Bursztyka Date: Fri, 10 Jul 2020 11:38:48 +0200 Subject: [PATCH] kernel: Apply IRQ offload API change Switching to constant parameter. Fixes #27399 Signed-off-by: Tomasz Bursztyka --- kernel/thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/thread.c b/kernel/thread.c index 1bbffd8dd19..64ec7c50cb8 100644 --- a/kernel/thread.c +++ b/kernel/thread.c @@ -871,7 +871,7 @@ static inline int z_vrfy_k_float_disable(struct k_thread *thread) #ifdef CONFIG_IRQ_OFFLOAD static K_SEM_DEFINE(offload_sem, 1, 1); -void irq_offload(irq_offload_routine_t routine, void *parameter) +void irq_offload(irq_offload_routine_t routine, const void *parameter) { k_sem_take(&offload_sem, K_FOREVER); arch_irq_offload(routine, parameter);