summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorYuval Peress <peress@google.com>2022-07-28 11:23:22 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-08-05 18:34:32 +0000
commita639c13eca2e4c1982e8b7d699a8b387e6bb030d (patch)
treee5a4613f07bb55ed03971e3aba481f9d3a896219 /core
parent79867844f7e223dee1183b3a02426b75288dfb88 (diff)
downloadchrome-ec-a639c13eca2e4c1982e8b7d699a8b387e6bb030d.tar.gz
util: remove unused includes
Remove these includes as they're not needed in this header. Instead, the includes should go where they're actually being used. BRANCH=none BUG=b:240574048 TEST=make buildall -j TEST=zmake build -a Signed-off-by: Yuval Peress <peress@google.com> Change-Id: I64b10af3216654b2a20caa1cabd267661a0bca39 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3791980 Reviewed-by: Tristan Honscheid <honscheid@google.com> Commit-Queue: Tristan Honscheid <honscheid@google.com>
Diffstat (limited to 'core')
-rw-r--r--core/cortex-m/mpu.c1
-rw-r--r--core/cortex-m/task.c1
-rw-r--r--core/cortex-m0/task.c1
-rw-r--r--core/host/timer.c1
-rw-r--r--core/minute-ia/task.c1
-rw-r--r--core/nds32/task.c2
-rw-r--r--core/riscv-rv32i/task.c2
7 files changed, 9 insertions, 0 deletions
diff --git a/core/cortex-m/mpu.c b/core/cortex-m/mpu.c
index ec9ceca201..e34dfb820e 100644
--- a/core/cortex-m/mpu.c
+++ b/core/cortex-m/mpu.c
@@ -5,6 +5,7 @@
/* MPU module for Chrome EC */
+#include "builtin/assert.h"
#include "mpu.h"
#include "console.h"
#include "cpu.h"
diff --git a/core/cortex-m/task.c b/core/cortex-m/task.c
index 8c46bc0161..f4315f32b1 100644
--- a/core/cortex-m/task.c
+++ b/core/cortex-m/task.c
@@ -6,6 +6,7 @@
/* Task scheduling / events module for Chrome EC operating system */
#include "atomic.h"
+#include "builtin/assert.h"
#include "common.h"
#include "console.h"
#include "cpu.h"
diff --git a/core/cortex-m0/task.c b/core/cortex-m0/task.c
index 4837c2dfbd..edb8688e4a 100644
--- a/core/cortex-m0/task.c
+++ b/core/cortex-m0/task.c
@@ -6,6 +6,7 @@
/* Task scheduling / events module for Chrome EC operating system */
#include "atomic.h"
+#include "builtin/assert.h"
#include "common.h"
#include "console.h"
#include "cpu.h"
diff --git a/core/host/timer.c b/core/host/timer.c
index 67271c5112..8a5d6442a4 100644
--- a/core/host/timer.c
+++ b/core/host/timer.c
@@ -8,6 +8,7 @@
#include <stdint.h>
#include <stdio.h>
+#include "builtin/assert.h"
#include "task.h"
#include "test_util.h"
#include "timer.h"
diff --git a/core/minute-ia/task.c b/core/minute-ia/task.c
index 052df663bb..ade530e04c 100644
--- a/core/minute-ia/task.c
+++ b/core/minute-ia/task.c
@@ -13,6 +13,7 @@
#define TEST_TASK_EXTRA_ARGS 0
#include "atomic.h"
+#include "builtin/assert.h"
#include "common.h"
#include "console.h"
#include "link_defs.h"
diff --git a/core/nds32/task.c b/core/nds32/task.c
index f7b5674085..c384e291f3 100644
--- a/core/nds32/task.c
+++ b/core/nds32/task.c
@@ -6,6 +6,7 @@
/* Task scheduling / events module for Chrome EC operating system */
#include "atomic.h"
+#include "builtin/assert.h"
#include "common.h"
#include "console.h"
#include "cpu.h"
@@ -13,6 +14,7 @@
#include "intc.h"
#include "irq_chip.h"
#include "link_defs.h"
+#include "panic.h"
#include "registers.h"
#include "task.h"
#include "timer.h"
diff --git a/core/riscv-rv32i/task.c b/core/riscv-rv32i/task.c
index 88d888b185..fe3117d5a7 100644
--- a/core/riscv-rv32i/task.c
+++ b/core/riscv-rv32i/task.c
@@ -6,10 +6,12 @@
/* Task scheduling / events module for Chrome EC operating system */
#include "atomic.h"
+#include "builtin/assert.h"
#include "console.h"
#include "cpu.h"
#include "irq_chip.h"
#include "link_defs.h"
+#include "panic.h"
#include "task.h"
#include "timer.h"
#include "util.h"