Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
home:matwey:branches:hardware
libxrt
0002-Use-.gem_free_object_unlocked-instead-of-....
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0002-Use-.gem_free_object_unlocked-instead-of-.gem_free_o.patch of Package libxrt
From 3be7f17e000c3a49560c4e7942dce06f207f8903 Mon Sep 17 00:00:00 2001 From: "Matwey V. Kornilov" <matwey.kornilov@gmail.com> Date: Sat, 12 Dec 2020 17:31:10 +0300 Subject: [PATCH 2/2] Use .gem_free_object_unlocked instead of .gem_free_object gem_free_object was removed in 5.9 https://github.com/torvalds/linux/commit/1a9458aeb8eb48bfa5f9b3e7682bddc28fd0b85e --- src/runtime_src/core/edge/drm/zocl/zocl_drv.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/runtime_src/core/edge/drm/zocl/zocl_drv.c b/src/runtime_src/core/edge/drm/zocl/zocl_drv.c index b6e3cd81..f719c724 100644 --- a/src/runtime_src/core/edge/drm/zocl/zocl_drv.c +++ b/src/runtime_src/core/edge/drm/zocl/zocl_drv.c @@ -762,7 +762,11 @@ static struct drm_driver zocl_driver = { #endif .open = zocl_client_open, .postclose = zocl_client_release, +#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 7, 0) + .gem_free_object_unlocked = zocl_free_bo, +#else .gem_free_object = zocl_free_bo, +#endif .gem_vm_ops = &zocl_bo_vm_ops, .gem_create_object = zocl_gem_create_object, .prime_handle_to_fd = drm_gem_prime_handle_to_fd, -- 2.26.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor