401 Star 1.4K Fork 1.3K

GVPopenEuler / kernel

 / 详情

[OLK-5.10] 编译OLK-5.10内核代码时遇到未声明结构体类型的报错

已完成
缺陷
创建于  
2021-11-13 16:57

【标题描述】编译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; }
      |                                                                   ~~~~~~~~~~~~~~~^

经过修改后才能执行正确的编译

评论 (2)

沈子俊 创建了缺陷

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).

openeuler-ci-bot 添加了
 
sig/Kernel
标签

多谢!已有修复补丁待合入

zhengzengkai 任务状态待办的 修改为已完成

登录 后才可以发表评论

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

搜索帮助