428 Star 1.6K Fork 1.6K

GVPopenEuler/kernel

 / 详情

cgroup/misc 编译告警修复

已完成
任务
创建于  
2024-01-31 14:49

misc 编译告警修复。
kernel/cgroup/misc.c: In function ‘misc_cg_capacity_show’:
kernel/cgroup/misc.c:328:4: warning: array subscript i is outside array bounds of ‘const char * const[0]’ [-Warray-bounds]
328 | seq_printf(sf, "%s %llu\n", misc_res_name[i], cap);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kernel/cgroup/misc.c:20:26: note: while referencing ‘misc_res_name’
20 | static const char *const misc_res_name[] = {
| ^~~~~~~~~~~~~
kernel/cgroup/misc.c: In function ‘misc_events_show’:
kernel/cgroup/misc.c:343:4: warning: array subscript i is outside array bounds of ‘const char * const[0]’ [-Warray-bounds]
343 | seq_printf(sf, "%s.max %llu\n", misc_res_name[i], events);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kernel/cgroup/misc.c:20:26: note: while referencing ‘misc_res_name’
20 | static const char *const misc_res_name[] = {
| ^~~~~~~~~~~~~

评论 (3)

Hi chenridong, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: Kernel, and any of the maintainers.

chenridong 创建了任务 1年前
openeuler-ci-bot 添加了
 
sig/Kernel
标签
1年前
chenridong 修改了标题 1年前
chenridong 修改了描述 1年前
zhengzengkai 里程碑设置为24.03-Kernel-Develop 1年前
zhengzengkai 关联分支设置为OLK-6.6 1年前
展开全部操作日志

登录 后才可以发表评论

状态
负责人
项目
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
预计工期 (小时)
开始日期   -   截止日期
-
置顶选项
优先级
分支
参与者(2)
5329419 openeuler ci bot 1632792936 chenridong-chenridong
C
1
https://gitee.com/openeuler/kernel.git
git@gitee.com:openeuler/kernel.git
openeuler
kernel
kernel

搜索帮助