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 <andrew.j.ross@intel.com>
This commit is contained in:
Andy Ross 2021-02-25 13:51:13 -08:00 committed by Anas Nashif
commit fed9f5aa04

View file

@ -21,7 +21,7 @@
*/ */
void test_fifo_get_fail(void *p1, void *p2, void *p3) void test_fifo_get_fail(void *p1, void *p2, void *p3)
{ {
struct k_fifo fifo; static struct k_fifo fifo;
k_fifo_init(&fifo); k_fifo_init(&fifo);
/**TESTPOINT: fifo get returns NULL*/ /**TESTPOINT: fifo get returns NULL*/