Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
X11:XOrg
evdi
evdi-Enable-compilation-against-15.5.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File evdi-Enable-compilation-against-15.5.patch of Package evdi
From: Joan Torres <joan.torres@suse.com> Date: Thu, 29 Jan 2023 17:05:51 +0200 Subject: [PATCH] Enable compilation against 15.5 Signed-off-by: Joan Torres <joan.torres@suse.com> --- Index: evdi-1.14.2/module/evdi_drm_drv.h =================================================================== --- evdi-1.14.2.orig/module/evdi_drm_drv.h +++ evdi-1.14.2/module/evdi_drm_drv.h @@ -26,7 +26,7 @@ #else #include <drm/drmP.h> #endif -#if KERNEL_VERSION(5, 15, 0) <= LINUX_VERSION_CODE || defined(EL8) || defined(EL9) +#if KERNEL_VERSION(5, 14, 0) <= LINUX_VERSION_CODE || defined(EL8) || defined(EL9) #include <drm/drm_framebuffer.h> #else #include <drm/drm_irq.h> Index: evdi-1.14.2/module/evdi_gem.c =================================================================== --- evdi-1.14.2.orig/module/evdi_gem.c +++ evdi-1.14.2/module/evdi_gem.c @@ -11,6 +11,7 @@ #include <linux/sched.h> #include <linux/version.h> #if KERNEL_VERSION(5, 18, 0) <= LINUX_VERSION_CODE || defined(EL8) || defined(EL9) +#elif KERNEL_VERSION(5, 14, 0) <= LINUX_VERSION_CODE #elif KERNEL_VERSION(5, 11, 0) <= LINUX_VERSION_CODE #include <linux/dma-buf-map.h> #endif @@ -27,7 +28,7 @@ #include <linux/dma-buf.h> #include <drm/drm_cache.h> -#if KERNEL_VERSION(5, 16, 0) <= LINUX_VERSION_CODE || defined(EL9) +#if KERNEL_VERSION(5, 14, 0) <= LINUX_VERSION_CODE || defined(EL9) MODULE_IMPORT_NS(DMA_BUF); #endif @@ -292,7 +293,7 @@ int evdi_gem_vmap(struct evdi_gem_object int ret; if (evdi_drm_gem_object_use_import_attach(&obj->base)) { -#if KERNEL_VERSION(5, 18, 0) <= LINUX_VERSION_CODE || defined(EL8) || defined(EL9) +#if KERNEL_VERSION(5, 14, 0) <= LINUX_VERSION_CODE || defined(EL8) || defined(EL9) struct iosys_map map = IOSYS_MAP_INIT_VADDR(NULL); #elif KERNEL_VERSION(5, 11, 0) <= LINUX_VERSION_CODE struct dma_buf_map map = DMA_BUF_MAP_INIT_VADDR(NULL); @@ -325,7 +326,7 @@ int evdi_gem_vmap(struct evdi_gem_object void evdi_gem_vunmap(struct evdi_gem_object *obj) { if (evdi_drm_gem_object_use_import_attach(&obj->base)) { -#if KERNEL_VERSION(5, 18, 0) <= LINUX_VERSION_CODE || defined(EL8) || defined(EL9) +#if KERNEL_VERSION(5, 14, 0) <= LINUX_VERSION_CODE || defined(EL8) || defined(EL9) struct iosys_map map = IOSYS_MAP_INIT_VADDR(NULL); if (obj->vmap_is_iomem)
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