Skip to content
Permalink
Browse files

cleanup: include/: move misc/dlist.h to sys/dlist.h

move misc/dlist.h to sys/dlist.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>
  • Loading branch information...
nashif committed Jun 26, 2019
1 parent 5d001f3 commit ee9dd1a54ab16b7be97317c38dd3cf50f6ece5eb
@@ -35,7 +35,7 @@ extern "C" {
#include <kernel_internal.h>
#include <zephyr/types.h>
#include <misc/util.h>
#include <misc/dlist.h>
#include <sys/dlist.h>
#endif

#ifndef _ASMLANGUAGE
@@ -33,7 +33,7 @@ extern "C" {
#include <kernel.h>
#include <kernel_internal.h>
#include <zephyr/types.h>
#include <misc/dlist.h>
#include <sys/dlist.h>
#include <sys/atomic.h>
#endif

@@ -35,7 +35,7 @@ extern "C" {
#include <kernel_internal.h>
#include <zephyr/types.h>
#include <misc/util.h>
#include <misc/dlist.h>
#include <sys/dlist.h>
#endif

/* stacks */
@@ -28,7 +28,7 @@ extern "C" {
#include <kernel.h>
#include <zephyr/types.h>
#include <misc/util.h>
#include <misc/dlist.h>
#include <sys/dlist.h>
#include <kernel_internal.h>

extern K_THREAD_STACK_DEFINE(_interrupt_stack, CONFIG_ISR_STACK_SIZE);
@@ -37,7 +37,7 @@
#include <kernel.h>
#include <kernel_internal.h>
#include <zephyr/types.h>
#include <misc/dlist.h>
#include <sys/dlist.h>
#endif

/* Some configurations require that the stack/registers be adjusted before
@@ -33,7 +33,7 @@ extern "C" {
#include <kernel.h> /* public kernel API */
#include <kernel_internal.h>
#include <zephyr/types.h>
#include <misc/dlist.h>
#include <sys/dlist.h>
#include <misc/util.h>

/* Bitmask definitions for the struct k_thread->flags bit field */
@@ -7,7 +7,7 @@
#define ZEPHYR_INCLUDE_APP_MEMORY_APP_MEMDOMAIN_H_

#include <linker/linker-defs.h>
#include <misc/dlist.h>
#include <sys/dlist.h>
#include <kernel.h>

#ifdef CONFIG_USERSPACE
@@ -19,7 +19,7 @@

#include <kernel.h>
#include <zephyr/types.h>
#include <misc/dlist.h>
#include <sys/dlist.h>

#ifdef __cplusplus
extern "C" {
@@ -26,7 +26,7 @@ typedef long long int off_t;
#include <sys/types.h>
#endif

#include <misc/dlist.h>
#include <sys/dlist.h>
#include <fs/fs_interface.h>

#ifdef __cplusplus
@@ -21,7 +21,7 @@
#include <sys/atomic.h>
#include <sys/__assert.h>
#include <sched_priq.h>
#include <misc/dlist.h>
#include <sys/dlist.h>
#include <misc/slist.h>
#include <misc/sflist.h>
#include <misc/util.h>

0 comments on commit ee9dd1a

Please sign in to comment.
You can’t perform that action at this time.