summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorTom Hughes <tomhughes@chromium.org>2021-10-14 20:57:27 +0000
committerCommit Bot <commit-bot@chromium.org>2021-10-15 23:40:38 +0000
commit09e3123257d708a59e3ae110f628ecbae74b49db (patch)
tree71d96fd934d4b3290e62222d69e7f079e6c5b8d7 /core
parent0888fe2d3e01b379ca8024d09f24fd89b3d49acf (diff)
downloadchrome-ec-09e3123257d708a59e3ae110f628ecbae74b49db.tar.gz
tree: Make all console commands static
Almost all of the console commands were already static. This change makes all of them static for consistency. BRANCH=none BUG=b:172020503 TEST=make buildall -j Signed-off-by: Tom Hughes <tomhughes@chromium.org> Change-Id: I0ac46358b6fbafa65504c648ce4de0365cdbf723 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3224372 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'core')
-rw-r--r--core/cortex-m/task.c2
-rw-r--r--core/cortex-m0/task.c2
-rw-r--r--core/host/task.c2
-rw-r--r--core/minute-ia/task.c2
-rw-r--r--core/nds32/task.c2
-rw-r--r--core/riscv-rv32i/task.c2
6 files changed, 6 insertions, 6 deletions
diff --git a/core/cortex-m/task.c b/core/cortex-m/task.c
index bf0eb5b397..b86750bd67 100644
--- a/core/cortex-m/task.c
+++ b/core/cortex-m/task.c
@@ -965,7 +965,7 @@ void task_print_list(void)
}
}
-int command_task_info(int argc, char **argv)
+static int command_task_info(int argc, char **argv)
{
#ifdef CONFIG_TASK_PROFILING
int total = 0;
diff --git a/core/cortex-m0/task.c b/core/cortex-m0/task.c
index ba40b667b6..ee7f9fb8e6 100644
--- a/core/cortex-m0/task.c
+++ b/core/cortex-m0/task.c
@@ -580,7 +580,7 @@ void task_print_list(void)
}
}
-int command_task_info(int argc, char **argv)
+static int command_task_info(int argc, char **argv)
{
#ifdef CONFIG_TASK_PROFILING
int total = 0;
diff --git a/core/host/task.c b/core/host/task.c
index be7ed3c579..70ce3e006f 100644
--- a/core/host/task.c
+++ b/core/host/task.c
@@ -316,7 +316,7 @@ void task_print_list(void)
}
}
-int command_task_info(int argc, char **argv)
+static int command_task_info(int argc, char **argv)
{
task_print_list();
diff --git a/core/minute-ia/task.c b/core/minute-ia/task.c
index fdbe37485b..dc0d72fb23 100644
--- a/core/minute-ia/task.c
+++ b/core/minute-ia/task.c
@@ -549,7 +549,7 @@ void task_print_list(void)
}
}
-int command_task_info(int argc, char **argv)
+static int command_task_info(int argc, char **argv)
{
task_print_list();
diff --git a/core/nds32/task.c b/core/nds32/task.c
index edacb7975e..5b4fe86876 100644
--- a/core/nds32/task.c
+++ b/core/nds32/task.c
@@ -687,7 +687,7 @@ void task_print_list(void)
}
}
-int command_task_info(int argc, char **argv)
+static int command_task_info(int argc, char **argv)
{
#ifdef CONFIG_TASK_PROFILING
int total = 0;
diff --git a/core/riscv-rv32i/task.c b/core/riscv-rv32i/task.c
index 558177e969..ef1595eaeb 100644
--- a/core/riscv-rv32i/task.c
+++ b/core/riscv-rv32i/task.c
@@ -620,7 +620,7 @@ void task_print_list(void)
}
}
-int command_task_info(int argc, char **argv)
+static int command_task_info(int argc, char **argv)
{
#ifdef CONFIG_TASK_PROFILING
unsigned int total = 0;