代码拉取完成,页面将自动刷新
【标题描述】编译OLK-5.10内核代码时遇到报错
【环境信息】
硬件信息:
架构aarch64,64位,8核,鲲鹏920
软件信息:
环境为openeuler-21.03-LTS,所编译内核为OLK-5.10分支内核
【问题复现步骤】
使用OLK-5.10分支代码,执行make时会遇到以下错误:
kernel/sched/topology.c:24:74: warning: ‘struct s_data’ declared inside parameter list will not be visible outside of this definition or declaration
24 | static inline int sd_llc_alloc_all(const struct cpumask *cpu_map, struct s_data *d) { return 0; }
| ^~~~~~
kernel/sched/topology.c: In function ‘build_sched_domains’:
kernel/sched/topology.c:2188:32: error: passing argument 2 of ‘sd_llc_alloc_all’ from incompatible pointer type [-Werror=incompatible-pointer-types]
2188 | if (sd_llc_alloc_all(cpu_map, &d))
| ^~
| |
| struct s_data *
kernel/sched/topology.c:24:82: note: expected ‘struct s_data *’ but argument is of type ‘struct s_data *’
24 | static inline int sd_llc_alloc_all(const struct cpumask *cpu_map, struct s_data *d) { return 0; }
| ~~~~~~~~~~~~~~~^
经过修改后才能执行正确的编译
Hi zhao_zhong_zhang, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at
https://gitee.com/openeuler/community/blob/master/en/sig-infrastructure/command.md.
If you have any questions, please contact the SIG: Kernel, and any of the maintainers: @Xie XiuQi, @YangYingliang, @成坚 (CHENG Jian).
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
多谢!已有修复补丁待合入
登录 后才可以发表评论