From 9a02ffdeb70f45d421b5cdff3fa3b5427b189af5 Mon Sep 17 00:00:00 2001 From: Guennadi Liakhovetski Date: Wed, 7 Oct 2020 10:14:18 +0200 Subject: [PATCH] zephyr: fix compiler warnings due to recent Zephyr changes Fix two compiler warnings, introduced by recent Zephyr changes. Signed-off-by: Guennadi Liakhovetski --- zephyr/wrapper.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zephyr/wrapper.c b/zephyr/wrapper.c index 36e329d86..a16a010ba 100644 --- a/zephyr/wrapper.c +++ b/zephyr/wrapper.c @@ -50,7 +50,7 @@ uint8_t __aligned(64) heapmem[HEAP_SIZE]; /* Use k_heap structure */ static struct k_heap sof_heap; -static int statics_init(struct device *unused) +static int statics_init(const struct device *unused) { ARG_UNUSED(unused); @@ -197,7 +197,8 @@ int interrupt_get_irq(unsigned int irq, const char *cascade) int interrupt_register(uint32_t irq, void(*handler)(void *arg), void *arg) { - return arch_irq_connect_dynamic(irq, 0, handler, arg, 0); + return arch_irq_connect_dynamic(irq, 0, (void (*)(const void *))handler, + arg, 0); } /* unregister an IRQ handler - matches on IRQ number and data ptr */