提交 27abd90f 编写于 作者: L Lijun Fang 提交者: Zheng Zengkai

iommu: sva: Fix compile error in iommu_sva_bind_group

hulk inclusion
category: bugfix
bugzilla: 51855
CVE: NA

---------------------------------------------

iommu_sva_bind_group should return pointer rather than an integer,
so it will cause compile error, if not defined CONFIG_IOMMU_API

Fixes: 45e52e3fc545 ("iommu: Add group variant for SVA bind/unbind")
Signed-off-by: NLijun Fang <fanglijun3@huawei.com>
Reviewed-by: NWeilong Chen <chenweilong@huawei.com>
Signed-off-by: NChen Jun <chenjun102@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 2b61fd82
......@@ -1114,7 +1114,7 @@ static inline struct iommu_sva *
iommu_sva_bind_group(struct iommu_group *group, struct mm_struct *mm,
void *drvdata)
{
return -ENODEV;
return NULL;
}
#endif /* CONFIG_IOMMU_API */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册