代码拉取完成,页面将自动刷新
From 1cbf12b3e1b790a437d7ff1b5e7e9d57033145a9 Mon Sep 17 00:00:00 2001
From: whoisxxx <zhangxuzhou4@huawei.com>
Date: Fri, 13 Aug 2021 13:23:48 +0800
Subject: [PATCH] [PATCH] Build fix: compile error of iommu_bind_guest_msi
When compile under risc-v env, kernel compile failed with below
error:
...
multiple definition of 'iommu_bind_guest_msi'
...
Which is related with commit 9db83ab7c29.
Signed-off-by: whoisxxx <zhangxuzhou4@huawei.com>
---
include/linux/iommu.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/iommu.h b/include/linux/iommu.h
index f0e2c1f..72508b8 100644
--- a/include/linux/iommu.h
+++ b/include/linux/iommu.h
@@ -1206,7 +1206,7 @@ void iommu_detach_pasid_table(struct iommu_domain *domain) {}
return NULL;
}
-int iommu_bind_guest_msi(struct iommu_domain *domain,
+static inline int iommu_bind_guest_msi(struct iommu_domain *domain,
dma_addr_t giova, phys_addr_t gpa, size_t size)
{
return -ENODEV;
--
1.8.3.1
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。