Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:matwey:branches:hardware
libxrt
0001-Define-ZOCL_DRM_GEM_OBJECT_PUT_UNLOCKED-fo...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Define-ZOCL_DRM_GEM_OBJECT_PUT_UNLOCKED-for-Linux-5..patch of Package libxrt
From de111a0d504ff575a2dcbf0fab4dc05bfb43555c Mon Sep 17 00:00:00 2001 From: "Matwey V. Kornilov" <matwey.kornilov@gmail.com> Date: Sat, 12 Dec 2020 16:54:22 +0300 Subject: [PATCH 1/2] Define ZOCL_DRM_GEM_OBJECT_PUT_UNLOCKED for Linux 5.9+ drm_gem_object_put_unlocked was renamed to drm_gem_object_put in 5.9: https://github.com/torvalds/linux/commit/2f4dd13d4bb8a85f6d5b66a18989509924e4f5e9 https://github.com/torvalds/linux/commit/ab15d56e27be47b7feebffd6e8319ece01959fbf --- src/runtime_src/core/edge/drm/zocl/include/zocl_drv.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/runtime_src/core/edge/drm/zocl/include/zocl_drv.h b/src/runtime_src/core/edge/drm/zocl/include/zocl_drv.h index b2e71af5..25082487 100644 --- a/src/runtime_src/core/edge/drm/zocl/include/zocl_drv.h +++ b/src/runtime_src/core/edge/drm/zocl/include/zocl_drv.h @@ -65,7 +65,9 @@ /* drm_gem_object_put_unlocked was introduced with Kernel 4.12 and backported to * Red Hat 7.5 */ -#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 7, 0) + #define ZOCL_DRM_GEM_OBJECT_PUT_UNLOCKED drm_gem_object_put +#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0) #define ZOCL_DRM_GEM_OBJECT_PUT_UNLOCKED drm_gem_object_put_unlocked #elif defined(RHEL_RELEASE_CODE) #if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(7, 5) -- 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