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[] = {
| ^~~~~~~~~~~~~
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
x86
amd64
登录 后才可以发表评论