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