[finsh] Remove deprecated FINSH_FUNCTION_EXPORT_ALIAS - #11734
[finsh] Remove deprecated FINSH_FUNCTION_EXPORT_ALIAS#11734BernardXiong wants to merge 3 commits into
Conversation
|
|
|
👋 感谢您对 RT-Thread 的贡献!Thank you for your contribution to RT-Thread! 为确保代码符合 RT-Thread 的编码规范,请在你的仓库中执行以下步骤运行代码格式化工作流(如果格式化CI运行失败)。 🛠 操作步骤 | Steps
完成后,提交将自动更新至 如有问题欢迎联系我们,再次感谢您的贡献!💐 |
📌 Code Review Assignment🏷️ Tag: componentsReviewers: @Maihuanyi Changed Files (Click to expand)
🏷️ Tag: components_driver_pmReviewers: @wdfk-prog Changed Files (Click to expand)
📊 Current Review Status (Last Updated: 2026-08-24 00:09 CST)
📝 Review Instructions
|
5dcdfc6 to
41df276
Compare
Remove the obsolete alias macro and stale call sites. Export compatible Allwinner command handlers through MSH_CMD_EXPORT_ALIAS.
41df276 to
5211867
Compare
There was a problem hiding this comment.
Pull request overview
Removes the deprecated no-op FINSH_FUNCTION_EXPORT_ALIAS API and migrates compatible Allwinner display handlers to MSH commands. / 移除已废弃的空操作 API,并将兼容的 Allwinner 显示处理函数迁移为 MSH 命令。
Changes:
- Removed macro definitions and stale call sites. / 移除宏定义及遗留调用。
- Migrated compatible display handlers to
MSH_CMD_EXPORT_ALIAS. / 迁移兼容的显示命令。 - Updated related cleanup code and changelog text. / 更新相关清理代码及变更记录。
Reviewed changes
Copilot reviewed 19 out of 19 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
include/rtdef.h |
Removes fallback alias macro. / 移除后备别名宏。 |
components/finsh/finsh.h |
Removes deprecated public macro. / 移除废弃公开宏。 |
components/drivers/pm/pm.c |
Removes redundant PM alias export. / 移除冗余 PM 导出。 |
components/drivers/mtd/mtd_nand.c |
Removes obsolete NAND aliases. / 移除旧 NAND 别名。 |
components/dfs/dfs_v2/src/dfs_posix.c |
Removes obsolete cd alias. / 移除旧 cd 别名。 |
components/dfs/dfs_v1/src/dfs_posix.c |
Removes obsolete cd alias. / 移除旧 cd 别名。 |
bsp/simulator/drivers/module_win32.c |
Removes stale export block. / 移除过时导出块。 |
bsp/simulator/drivers/board.c |
Removes exit alias; includes unrelated initialization edit. / 移除退出别名,并包含无关初始化改动。 |
bsp/fujitsu/mb9x/mb9bf506r/drivers/nand.c |
Removes obsolete debug aliases. / 移除旧调试别名。 |
bsp/at91/at91sam9260/platform/reset.c |
Removes redundant reset alias. / 移除冗余复位别名。 |
bsp/apm32/libraries/Drivers/drv_common.c |
Updates changelog wording. / 更新变更记录措辞。 |
bsp/allwinner/libraries/sunxi-hal/hal/test/disp2/disp_mem.c |
Exports memory command and adds null handling. / 导出内存命令并增加空值处理。 |
bsp/allwinner/libraries/sunxi-hal/hal/test/disp2/disp_lbc_test.c |
Migrates LBC command export. / 迁移 LBC 命令导出。 |
bsp/allwinner/libraries/sunxi-hal/hal/test/disp2/disp_layer_scal_test.c |
Migrates scaling-test export. / 迁移缩放测试导出。 |
bsp/allwinner/libraries/sunxi-hal/hal/test/disp2/disp_layer_rgb_test.c |
Migrates RGB-test export. / 迁移 RGB 测试导出。 |
bsp/allwinner/libraries/sunxi-hal/hal/test/disp2/disp_layer_format_test.c |
Migrates format-test export. / 迁移格式测试导出。 |
bsp/allwinner/libraries/sunxi-hal/hal/test/disp2/disp_layer_cfg.c |
Migrates layer configuration export. / 迁移图层配置导出。 |
bsp/allwinner/libraries/sunxi-hal/hal/test/disp2/disp_layer_alpha_test.c |
Migrates alpha-test export. / 迁移透明度测试导出。 |
bsp/allwinner/libraries/sunxi-hal/hal/source/disp2/disp/disp_debug.c |
Adapts and exports the display debug handler. / 调整并导出显示调试处理函数。 |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| } | ||
|
|
||
| FINSH_FUNCTION_EXPORT_ALIAS(cmd_disp_debug, __cmd_disp, disp cmd); | ||
| MSH_CMD_EXPORT_ALIAS(cmd_disp_debug, __cmd_disp, disp cmd); |
| { | ||
| /* init system memory */ | ||
| rt_hw_sram_init(); | ||
| RT_UNUSED(rt_hw_sram_init()); |
|
|
||
| FINSH_FUNCTION_EXPORT_ALIAS(parse_cmdline_and_alloc, disp_mem, disp mem); | ||
|
|
||
| MSH_CMD_EXPORT_ALIAS(parse_cmdline_and_alloc, disp_mem, disp mem); |
修复 disp 命令参数越界和内存命令输入校验问题,并恢复模拟器 SRAM 初始化调用。
整理受影响代码的 clang-format 排版,并显式消费模拟器 SRAM 初始化返回值以通过 cppcheck。
|
已补充修复并推送到 |
Summary
FINSH_FUNCTION_EXPORT_ALIASdefinitions and all remaining call sites.MSH_CMD_EXPORT_ALIAS.Fixes #10814 and follows up on #10940.
Validation
FINSH_FUNCTION_EXPORT_ALIASreferences remain.