1 Star 0 Fork 19

baiguo/risc-v-kernel

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
0001-PATCH-Build-fix-compile-error-of-iommu_bind_guest_ms.patch 987 Bytes
一键复制 编辑 原始数据 按行查看 历史
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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/baiguoguo/risc-v-kernel.git
git@gitee.com:baiguoguo/risc-v-kernel.git
baiguoguo
risc-v-kernel
risc-v-kernel
master

搜索帮助