summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorcopilot-swe-agent[bot] <[email protected]>2025-11-16 14:05:44 +0000
committercopilot-swe-agent[bot] <[email protected]>2025-11-16 14:05:44 +0000
commit9b599821124126983382c1977babcb93641a566d (patch)
tree21f90039fad0c1ec55572459cf477a6adc7445ac /components
parentda867222e98e49a3c1e4f2bd60256a289f10c1ee (diff)
Remove all FINSH_FUNCTION_EXPORT_ALIAS calls and definitionscopilot/clean-up-finsh-function-code
Co-authored-by: BernardXiong <[email protected]>
Diffstat (limited to 'components')
-rw-r--r--components/dfs/dfs_v1/src/dfs_posix.c4
-rw-r--r--components/dfs/dfs_v2/src/dfs_posix.c4
-rw-r--r--components/drivers/mtd/mtd_nand.c9
-rw-r--r--components/drivers/pm/pm.c1
-rw-r--r--components/finsh/finsh.h11
5 files changed, 1 insertions, 28 deletions
diff --git a/components/dfs/dfs_v1/src/dfs_posix.c b/components/dfs/dfs_v1/src/dfs_posix.c
index f3d7b70c31..7c2b034c09 100644
--- a/components/dfs/dfs_v1/src/dfs_posix.c
+++ b/components/dfs/dfs_v1/src/dfs_posix.c
@@ -977,10 +977,6 @@ int chdir(const char *path)
return 0;
}
RTM_EXPORT(chdir);
-
-#ifdef RT_USING_FINSH
-FINSH_FUNCTION_EXPORT_ALIAS(chdir, cd, change current working directory);
-#endif
#endif
/**
diff --git a/components/dfs/dfs_v2/src/dfs_posix.c b/components/dfs/dfs_v2/src/dfs_posix.c
index d0eff53a46..12875dfcdc 100644
--- a/components/dfs/dfs_v2/src/dfs_posix.c
+++ b/components/dfs/dfs_v2/src/dfs_posix.c
@@ -1240,10 +1240,6 @@ int chdir(const char *path)
return 0;
}
RTM_EXPORT(chdir);
-
-#ifdef RT_USING_FINSH
-FINSH_FUNCTION_EXPORT_ALIAS(chdir, cd, change current working directory);
-#endif
#endif
/**
diff --git a/components/drivers/mtd/mtd_nand.c b/components/drivers/mtd/mtd_nand.c
index 65402194c4..0f17075751 100644
--- a/components/drivers/mtd/mtd_nand.c
+++ b/components/drivers/mtd/mtd_nand.c
@@ -411,15 +411,6 @@ help:
MSH_CMD_EXPORT(mtd_nand, MTD nand device test function);
#endif /* RT_USING_FINSH */
-#ifndef RT_USING_FINSH_ONLY
-FINSH_FUNCTION_EXPORT_ALIAS(mtd_nandid, nand_id, read ID - nandid(name));
-FINSH_FUNCTION_EXPORT_ALIAS(mtd_nand_read, nand_read, read page in nand - nand_read(name, block, page));
-FINSH_FUNCTION_EXPORT_ALIAS(mtd_nand_readoob, nand_readoob, read spare data in nand - nand_readoob(name, block, page));
-FINSH_FUNCTION_EXPORT_ALIAS(mtd_nand_write, nand_write, write dump data to nand - nand_write(name, block, page));
-FINSH_FUNCTION_EXPORT_ALIAS(mtd_nand_erase, nand_erase, nand_erase(name, block));
-FINSH_FUNCTION_EXPORT_ALIAS(mtd_nand_erase_all, nand_erase_all, erase all of nand device - nand_erase_all(name, block));
-#endif /* RT_USING_FINSH_ONLY */
-
#endif /* defined(RT_MTD_NAND_DEBUG) && defined(RT_USING_FINSH) */
#endif /* RT_USING_MTD_NAND */
diff --git a/components/drivers/pm/pm.c b/components/drivers/pm/pm.c
index b4ad3b2bbd..e836c7462c 100644
--- a/components/drivers/pm/pm.c
+++ b/components/drivers/pm/pm.c
@@ -1279,7 +1279,6 @@ static void rt_pm_dump_status(void)
}
rt_kprintf("+--------+------+------------+-----------+\n");
}
-FINSH_FUNCTION_EXPORT_ALIAS(rt_pm_dump_status, pm_dump, dump power management status);
MSH_CMD_EXPORT_ALIAS(rt_pm_dump_status, pm_dump, dump power management status);
#endif
diff --git a/components/finsh/finsh.h b/components/finsh/finsh.h
index a40d1b3ed9..58d2dd9692 100644
--- a/components/finsh/finsh.h
+++ b/components/finsh/finsh.h
@@ -121,16 +121,7 @@ typedef long (*syscall_func)(void);
*/
#define FINSH_FUNCTION_EXPORT(name, desc)
-/**
- * @ingroup group_finsh
- *
- * @brief Exports a system function with an alias name to finsh shell.
- *
- * @param[in] name Name of function.
- * @param[in] alias Alias name of function.
- * @param[in] desc Description of function, which will show in help.
- */
-#define FINSH_FUNCTION_EXPORT_ALIAS(name, alias, desc)
+
/**
* @ingroup group_finsh