subsys/profiling: shell cmd function should be static

These shell cmd function should be static.

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
This commit is contained in:
Yong Cong Sin 2024-08-16 13:27:56 +08:00 committed by Henrik Brix Andersen
commit af7eb76ba4

View file

@ -73,7 +73,7 @@ static int perf_init(void)
return 0;
}
int cmd_perf_record(const struct shell *sh, size_t argc, char **argv)
static int cmd_perf_record(const struct shell *sh, size_t argc, char **argv)
{
if (k_work_delayable_is_pending(&perf_data.dwork)) {
shell_warn(sh, "Perf is running");
@ -128,7 +128,7 @@ static int cmd_perf_info(const struct shell *sh, size_t argc, char **argv)
return 0;
}
int cmd_perf_print(const struct shell *sh, size_t argc, char **argv)
static int cmd_perf_print(const struct shell *sh, size_t argc, char **argv)
{
if (k_work_delayable_is_pending(&perf_data.dwork)) {
shell_warn(sh, "Perf is running");