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:
parent
e330971ec5
commit
af7eb76ba4
1 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue