Projects
Eulaceura:Mainline:GA
dim
_service:obs_scm:backport-fix-build-error-in-ke...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:backport-fix-build-error-in-kernel-6.6.patch of Package dim
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
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2