1 Star 0 Fork 10

jinlun/dim_9

forked from src-openEuler/dim 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-fix-build-error-in-kernel-6.6.patch 876 Bytes
一键复制 编辑 原始数据 按行查看 历史
jinlun 提交于 2024-04-16 10:12 . backport some patches
From b43b4c3301ffd1ca27a0826db09465a3d90f5169 Mon Sep 17 00:00:00 2001
From: jinlun <jinlun@huawei.com>
Date: Mon, 29 Jan 2024 10:17:24 +0800
Subject: [PATCH 10/26] fix build error in kernel-6.6
---
src/core/dim_core_measure_task.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/core/dim_core_measure_task.c b/src/core/dim_core_measure_task.c
index 0d9b995..6ab60d1 100644
--- a/src/core/dim_core_measure_task.c
+++ b/src/core/dim_core_measure_task.c
@@ -223,7 +223,11 @@ static int update_vma_digest(struct vm_area_struct *vma_start,
return -ENOMEM;
ret_pages = get_user_pages_remote(vma_start->vm_mm, addr_start, nr_pages,
+#if LINUX_VERSION_CODE <= KERNEL_VERSION(6,4,0)
0, pages, NULL, NULL);
+#else
+ 0, pages, NULL);
+#endif
if (ret_pages < 0) {
dim_err("failed to get vma pages: %ld\n", ret_pages);
vfree(pages);
--
2.33.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jinlun123123/dim_9.git
git@gitee.com:jinlun123123/dim_9.git
jinlun123123
dim_9
dim_9
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385