diff --git a/kernel/include/kernel_structs.h b/kernel/include/kernel_structs.h index bb44c3b4dfb..78a722d36ba 100644 --- a/kernel/include/kernel_structs.h +++ b/kernel/include/kernel_structs.h @@ -185,7 +185,7 @@ extern struct z_kernel _kernel; #include -#if CONFIG_USE_SWITCH +#ifdef CONFIG_USE_SWITCH /* This is a arch function traditionally, but when the switch-based * z_swap() is in use it's a simple inline provided by the kernel. */