From fed9f5aa048497fc064964045fd6be12bf32df12 Mon Sep 17 00:00:00 2001 From: Andy Ross Date: Thu, 25 Feb 2021 13:51:13 -0800 Subject: [PATCH] tests/fifo_api: Move k_fifo off stack Putting spinlocks (or things containing them) onto the stack is a KERNEL_COHERENCE violation. This doesn't need to be there so just make it static. Signed-off-by: Andy Ross --- tests/kernel/fifo/fifo_api/src/test_fifo_fail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/kernel/fifo/fifo_api/src/test_fifo_fail.c b/tests/kernel/fifo/fifo_api/src/test_fifo_fail.c index 584ad623924..92913098d0a 100644 --- a/tests/kernel/fifo/fifo_api/src/test_fifo_fail.c +++ b/tests/kernel/fifo/fifo_api/src/test_fifo_fail.c @@ -21,7 +21,7 @@ */ void test_fifo_get_fail(void *p1, void *p2, void *p3) { - struct k_fifo fifo; + static struct k_fifo fifo; k_fifo_init(&fifo); /**TESTPOINT: fifo get returns NULL*/