cleanup: include/: move misc/math_extras.h to sys/math_extras.h move misc/math_extras.h to sys/math_extras.h and create a shim for backward-compatibility. No functional changes to the headers. A warning in the shim can be controlled with CONFIG_COMPAT_INCLUDES. Related to #16539 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
diff --git a/kernel/include/syscall_handler.h b/kernel/include/syscall_handler.h index ab2449d..13fb352 100644 --- a/kernel/include/syscall_handler.h +++ b/kernel/include/syscall_handler.h
@@ -13,7 +13,7 @@ #ifndef _ASMLANGUAGE #include <kernel.h> #include <misc/printk.h> -#include <misc/math_extras.h> +#include <sys/math_extras.h> #include <kernel_internal.h> #include <stdbool.h>
diff --git a/kernel/mempool.c b/kernel/mempool.c index ad2849f..35c42dd 100644 --- a/kernel/mempool.c +++ b/kernel/mempool.c
@@ -10,7 +10,7 @@ #include <init.h> #include <string.h> #include <sys/__assert.h> -#include <misc/math_extras.h> +#include <sys/math_extras.h> #include <stdbool.h> static struct k_spinlock lock;
diff --git a/kernel/msg_q.c b/kernel/msg_q.c index ef0bf43..2ae117a 100644 --- a/kernel/msg_q.c +++ b/kernel/msg_q.c
@@ -18,7 +18,7 @@ #include <string.h> #include <wait_q.h> #include <sys/dlist.h> -#include <misc/math_extras.h> +#include <sys/math_extras.h> #include <init.h> #include <syscall_handler.h> #include <kernel_internal.h>
diff --git a/kernel/thread.c b/kernel/thread.c index 90d0ade..a360511 100644 --- a/kernel/thread.c +++ b/kernel/thread.c
@@ -19,7 +19,7 @@ #include <spinlock.h> #include <kernel_structs.h> #include <misc/printk.h> -#include <misc/math_extras.h> +#include <sys/math_extras.h> #include <sys_clock.h> #include <drivers/timer/system_timer.h> #include <ksched.h>
diff --git a/kernel/userspace.c b/kernel/userspace.c index 819db64..49f8d7c 100644 --- a/kernel/userspace.c +++ b/kernel/userspace.c
@@ -7,7 +7,7 @@ #include <kernel.h> #include <string.h> -#include <misc/math_extras.h> +#include <sys/math_extras.h> #include <misc/printk.h> #include <misc/rb.h> #include <kernel_structs.h>