Browse Source

kernel: cleanup header inclusion

Remove unused header inclusion in kernel code.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
pull/26791/head
Anas Nashif 6 years ago committed by Maureen Helm
parent
commit
8aa3dc340d
  1. 5
      kernel/mutex.c
  2. 2
      kernel/pipes.c
  3. 1
      kernel/poll.c
  4. 2
      kernel/queue.c
  5. 1
      kernel/sem.c
  6. 1
      kernel/stack.c
  7. 2
      kernel/thread.c

5
kernel/mutex.c

@ -29,16 +29,15 @@
#include <kernel.h> #include <kernel.h>
#include <kernel_structs.h> #include <kernel_structs.h>
#include <toolchain.h> #include <toolchain.h>
#include <linker/sections.h>
#include <ksched.h> #include <ksched.h>
#include <wait_q.h> #include <wait_q.h>
#include <sys/dlist.h>
#include <debug/object_tracing_common.h>
#include <errno.h> #include <errno.h>
#include <init.h> #include <init.h>
#include <syscall_handler.h> #include <syscall_handler.h>
#include <debug/object_tracing_common.h>
#include <tracing/tracing.h> #include <tracing/tracing.h>
#include <sys/check.h> #include <sys/check.h>
#include <logging/log.h>
LOG_MODULE_DECLARE(os); LOG_MODULE_DECLARE(os);
/* We use a global spinlock here because some of the synchronization /* We use a global spinlock here because some of the synchronization

2
kernel/pipes.c

@ -14,10 +14,8 @@
#include <kernel_structs.h> #include <kernel_structs.h>
#include <debug/object_tracing_common.h> #include <debug/object_tracing_common.h>
#include <toolchain.h> #include <toolchain.h>
#include <linker/sections.h>
#include <ksched.h> #include <ksched.h>
#include <wait_q.h> #include <wait_q.h>
#include <sys/dlist.h>
#include <init.h> #include <init.h>
#include <syscall_handler.h> #include <syscall_handler.h>
#include <kernel_internal.h> #include <kernel_internal.h>

1
kernel/poll.c

@ -20,7 +20,6 @@
#include <wait_q.h> #include <wait_q.h>
#include <ksched.h> #include <ksched.h>
#include <syscall_handler.h> #include <syscall_handler.h>
#include <sys/slist.h>
#include <sys/dlist.h> #include <sys/dlist.h>
#include <sys/util.h> #include <sys/util.h>
#include <sys/__assert.h> #include <sys/__assert.h>

2
kernel/queue.c

@ -15,10 +15,8 @@
#include <kernel_structs.h> #include <kernel_structs.h>
#include <debug/object_tracing_common.h> #include <debug/object_tracing_common.h>
#include <toolchain.h> #include <toolchain.h>
#include <linker/sections.h>
#include <wait_q.h> #include <wait_q.h>
#include <ksched.h> #include <ksched.h>
#include <sys/sflist.h>
#include <init.h> #include <init.h>
#include <syscall_handler.h> #include <syscall_handler.h>
#include <kernel_internal.h> #include <kernel_internal.h>

1
kernel/sem.c

@ -21,7 +21,6 @@
#include <kernel_structs.h> #include <kernel_structs.h>
#include <debug/object_tracing_common.h> #include <debug/object_tracing_common.h>
#include <toolchain.h> #include <toolchain.h>
#include <linker/sections.h>
#include <wait_q.h> #include <wait_q.h>
#include <sys/dlist.h> #include <sys/dlist.h>
#include <ksched.h> #include <ksched.h>

1
kernel/stack.c

@ -12,7 +12,6 @@
#include <kernel_structs.h> #include <kernel_structs.h>
#include <debug/object_tracing_common.h> #include <debug/object_tracing_common.h>
#include <toolchain.h> #include <toolchain.h>
#include <linker/sections.h>
#include <ksched.h> #include <ksched.h>
#include <wait_q.h> #include <wait_q.h>
#include <sys/check.h> #include <sys/check.h>

2
kernel/thread.c

@ -15,10 +15,8 @@
#include <spinlock.h> #include <spinlock.h>
#include <sys/math_extras.h> #include <sys/math_extras.h>
#include <sys_clock.h> #include <sys_clock.h>
#include <drivers/timer/system_timer.h>
#include <ksched.h> #include <ksched.h>
#include <wait_q.h> #include <wait_q.h>
#include <sys/atomic.h>
#include <syscall_handler.h> #include <syscall_handler.h>
#include <kernel_internal.h> #include <kernel_internal.h>
#include <kswap.h> #include <kswap.h>

Loading…
Cancel
Save