Pull Request已成功合入, 合并人@CANN-robot
(感谢 xiachanglin 的贡献)Thanks for your pull-request.
The full list of commands accepted by me can be found at here。
You can get sig-info at here
PR Approval Progress
✅ Congratulations! All modules have met the lgtm and approve requirements.
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| src/inc/runtime | ✅ Reyn52166, 侯延保 (2/2) | ✅ Reyn52166 (1/1) |
| src/runtime | ✅ Reyn52166, 侯延保 (2/2) | ✅ Reyn52166 (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
xiachanglin, thanks for your pull request. All authors of the commits have signed the CLA. 👍


compile


流水线任务触发成功
任务链接 [f7b706659440407b8b0a298ce909980f][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| Compile_Ascend_X86 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM | ✅ SUCCESS | >>>>> | >>>>> |
| pre_comment | ✅ SUCCESS | >>>>> | |
| UT_Test_acl | ✅ SUCCESS | >>>>> | |
| UT_Test_rts_v201 | ✅ SUCCESS | >>>>> | |
| UT_Test_rts_c | ✅ SUCCESS | >>>>> | |
| UT_Test_rts_david | ✅ SUCCESS | >>>>> | |
| UT_Test_rts_910b | ✅ SUCCESS | >>>>> | |
| UT_Test_rts_common | ✅ SUCCESS | >>>>> | |
| UT_Test_platform | ✅ SUCCESS | >>>>> | |
| UT_Test_qs | ✅ SUCCESS | >>>>> | |
| UT_Test_aicpusd | ✅ SUCCESS | >>>>> | |
| UT_Test_tsd | ✅ SUCCESS | >>>>> | |
| UT_Test_error_manager | ✅ SUCCESS | >>>>> | |
| UT_Test_slog | ✅ SUCCESS | >>>>> | |
| UT_Test_atrace | ✅ SUCCESS | >>>>> | |
| UT_Test_msprof_part1 | ✅ SUCCESS | ||
| UT_Test_msprof_part2 | ✅ SUCCESS | ||
| UT_Test_adump | ✅ SUCCESS | >>>>> | |
| UT_Test_mmpa | ✅ SUCCESS | >>>>> | |
| PreSmoke_A900_npupool | ✅ SUCCESS | >>>>> | |
| UT_Test_rts_report | ✅ SUCCESS | >>>>> | |
| UT_Test_msprof_report | ✅ SUCCESS |
[2026-06-18 20:25:32] CI执行结束


流水线任务触发成功
任务链接 [f1b8ca522ff3462fb4dc362681a32adc][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| codecheck | ✅ SUCCESS | >>>>> | |
| SCA | ✅ SUCCESS | >>>>> | |
| antipoison | ✅ SUCCESS | >>>>> | |
| codecheck_Check_Pr | ✅ SUCCESS | ||
| codecheck_style | ✅ SUCCESS | >>>>> | |
| codecheck_precommit | ⚠️ WARNING | >>>>> | >>>>> |
| StaticCheck_codespell_check | ✅ SUCCESS | ||
| StaticCheck_link_validity_check | ✅ SUCCESS | ||
| StaticCheck_resource_existence_check | ✅ SUCCESS | ||
| StaticCheck_tag_closed_check | ✅ SUCCESS | ||
| StaticCheck_markdownlint | ✅ SUCCESS |
[2026-06-18 20:22:05] CI执行结束


我已经逐一审查了所有 10 个变更文件。这些改动均为编译器告警修复(如符号后缀不一致、const 修饰符位置、缺少 const、隐式类型转换等),未引入功能变更或逻辑缺陷。
变更摘要
此 PR 主要清理各类编译器告警,包括:为移位操作的右操作数添加 U 后缀以消除符号不匹配警告;为枚举常量十六进制字面量添加 U 后缀匹配底层无符号类型;在头文件声明处将 const 移至类型右侧(east-const 风格);为不修改成员变量的成员函数添加 const 限定;为不会被修改的局部变量添加 const 修饰;以及在 printf.cc 与 profiler.cc 中为 std::to_string 参数和三元表达式添加显式 static_cast 以消除隐式类型转换/缩窄告警。
主要改动
src/inc/runtime/rt_inner_device.h枚举值移位操作统一U后缀: 将rtAtomicOperationCapability枚举中所有1U << N的移位右操作数从无符号整数改为带U后缀(如1U << 0U),消除移位操作中符号不匹配的警告。src/runtime/core/inc/printf.hpp枚举值十六进制字面量添加U后缀: 将DumpType(底层类型uint32_t)的三个显式赋值常量0xF0E00F0E等改为0xF0E00F0EU,匹配无符号枚举底层类型,消除符号警告。src/runtime/core/inc/cond_handle/cond_handle.hpp成员函数添加const限定: 为GetCondType()方法添加const限定符,表示该成员函数不修改对象状态,消除 const-correctness 相关告警。src/runtime/core/src/dfx/printf.cc与src/runtime/core/src/profiler/profiler.cc显式类型转换: 在PrintDumpTensor中对std::to_string参数tensorHead->position(uint16_t)添加static_cast<uint32_t>;在FillKernelLaunchExtInfo中将static_cast<uint16_t>包裹整个三元表达式,消除隐式缩窄转换告警。- 其余文件 const 修饰与风格统一: 在
src/inc/runtime/rt_inner_mem.h、src/runtime/api/api.hpp、src/runtime/core/inc_c/api_impl_david.hpp将函数参数的const从类型左侧移至右侧(如const T p→T const p);在src/runtime/core/src/device/device_error_proc.cc、src/runtime/core/src/dfx/fp16_t.cpp为不修改的局部变量添加const。均为编译告警清理,无功能变更。


The following label is not ready.
ci-pipeline-passed: The ci-pipeline-passed label is expired. Please compile again.


compile


流水线任务触发成功
任务链接 [94cb1f90bf6940ec9a772b7eeefa0210][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| codecheck | ✅ SUCCESS | >>>>> | |
| SCA | ✅ SUCCESS | >>>>> | |
| antipoison | ✅ SUCCESS | >>>>> | |
| codecheck_Check_Pr | ✅ SUCCESS | ||
| codecheck_style | ✅ SUCCESS | >>>>> | |
| codecheck_precommit | ⚠️ WARNING | >>>>> | >>>>> |
| StaticCheck_codespell_check | ✅ SUCCESS | ||
| StaticCheck_link_validity_check | ✅ SUCCESS | ||
| StaticCheck_resource_existence_check | ✅ SUCCESS | ||
| StaticCheck_tag_closed_check | ✅ SUCCESS | ||
| StaticCheck_markdownlint | ✅ SUCCESS |
[2026-06-22 09:24:44] CI执行结束


流水线任务触发成功
任务链接 [bafc26287da74ebe87f08ace4ecaab7e][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| Compile_Ascend_X86 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM | ✅ SUCCESS | >>>>> | >>>>> |
| pre_comment | ✅ SUCCESS | >>>>> | |
| UT_Test_acl | ✅ SUCCESS | >>>>> | |
| UT_Test_rts_v201 | ✅ SUCCESS | >>>>> | |
| UT_Test_rts_c | ✅ SUCCESS | >>>>> | |
| UT_Test_rts_david | ✅ SUCCESS | >>>>> | |
| UT_Test_rts_910b | ✅ SUCCESS | >>>>> | |
| UT_Test_rts_common | ✅ SUCCESS | >>>>> | |
| UT_Test_platform | ✅ SUCCESS | >>>>> | |
| UT_Test_qs | ✅ SUCCESS | >>>>> | |
| UT_Test_aicpusd | ✅ SUCCESS | >>>>> | |
| UT_Test_tsd | ✅ SUCCESS | >>>>> | |
| UT_Test_error_manager | ✅ SUCCESS | >>>>> | |
| UT_Test_slog | ✅ SUCCESS | >>>>> | |
| UT_Test_atrace | ✅ SUCCESS | >>>>> | |
| UT_Test_msprof_part1 | ✅ SUCCESS | ||
| UT_Test_msprof_part2 | ✅ SUCCESS | ||
| UT_Test_adump | ✅ SUCCESS | >>>>> | |
| UT_Test_mmpa | ✅ SUCCESS | >>>>> | |
| PreSmoke_A900_npupool | ✅ SUCCESS | >>>>> | |
| UT_Test_rts_report | ✅ SUCCESS | >>>>> | |
| UT_Test_msprof_report | ✅ SUCCESS |
[2026-06-22 09:33:07] CI执行结束


Pull Request
描述
告警清理。
变更类型
请选择本次引入的变更类型:
关联的Issue
如何测试
描述测试此变更的步骤和前提条件:
1.
2.
核对清单
其他信息
在此添加任何其他关于本次 PR 的说明。