401 Star 1.4K Fork 1.4K

GVPopenEuler / kernel

 / 详情

【openEuler-21.09】iommu_device_register形参数量不一致

已挂起
缺陷
创建于  
2021-08-28 14:19

【标题描述】iommu_device_register形参数量不一致
【环境信息】
硬件信息:
1) 裸机场景提供出问题的硬件信息;
2) 虚机场景提供虚机XML文件或者配置信息
qemux86-64
软件信息:
1) OS版本及分支 openEuler-21.09
2) 内核信息
3) 发现问题的组件版本信息
如果有特殊组网,请提供网络拓扑图
【问题复现步骤】
include/linux/iommu.h文件中422行:
int iommu_device_register(struct iommu_device *iommu);
而在1017行:
static inline int iommu_device_register(struct iommu_device *iommu,
const struct iommu_ops *ops,
struct device *hwdev)
【预期结果】
预期编译通过
【实际结果】
编译时报错日志:
drivers/iommu/intel/dmar.c: In function 'alloc_iommu':
drivers/iommu/intel/dmar.c:1149:9: error: too few arguments to function 'iommu_device_register'
1149 | err = iommu_device_register(&iommu->iommu);
In file included from include/linux/intel-iommu.h:19,
from drivers/iommu/intel/dmar.c:22:
/include/linux/iommu.h:1017:19: note: declared here
1017 | static inline int iommu_device_register(struct iommu_device *iommu,
| ^~~~~~~~~~~~~~~~~~~~~
【附件信息】

评论 (2)

s_c_c 创建了缺陷
s_c_c 关联仓库设置为openEuler/kernel
展开全部操作日志

Hey s-c-c, 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
标签
s_c_c 修改了描述
s_c_c 修改了标题
sanglipeng 负责人设置为sanglipeng
sanglipeng 任务状态待办的 修改为修复中
sanglipeng 添加了
 
issue_needinfo
标签
sanglipeng 关联分支设置为openEuler-21.09
sanglipeng 任务状态修复中 修改为已挂起

经查看目前问题仍然存在。

sanglipeng 移除了
 
issue_needinfo
标签
sanglipeng 移除了
 
issue_needinfo
标签
sanglipeng 添加了
 
issue_feature
标签

登录 后才可以发表评论

状态
负责人
项目
里程碑
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

搜索帮助

344bd9b3 5694891 D2dac590 5694891