Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:ohollmann:staging:openssl
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> --- diff --git a/module/evdi_drm_drv.h b/module/evdi_drm_drv.h index 5eea878..cd69cbf 100644 --- a/module/evdi_drm_drv.h +++ b/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> diff --git a/module/evdi_gem.c b/module/evdi_gem.c index de92a2b..148e632 100644 --- a/module/evdi_gem.c +++ b/module/evdi_gem.c @@ -10,7 +10,8 @@ #include <linux/sched.h> #include <linux/version.h> -#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) +#include <linux/iosys-map.h> #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 @@ -289,7 +290,7 @@ int evdi_gem_vmap(struct evdi_gem_object *obj) 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 || defined(EL8) struct dma_buf_map map = DMA_BUF_MAP_INIT_VADDR(NULL); @@ -322,7 +323,7 @@ int evdi_gem_vmap(struct evdi_gem_object *obj) 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