Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:HEBH
displaylink
opensuse15.5.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File opensuse15.5.patch of Package displaylink
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 efae6e1..d848e5f 100644 --- a/module/evdi_gem.c +++ b/module/evdi_gem.c @@ -11,6 +11,8 @@ #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 +#include <drm/drm_prime.h> #elif KERNEL_VERSION(5, 11, 0) <= LINUX_VERSION_CODE #include <linux/dma-buf-map.h> #endif @@ -292,7 +294,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 struct dma_buf_map map = DMA_BUF_MAP_INIT_VADDR(NULL); @@ -325,7 +327,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) diff --git a/module/evdi_params.h b/module/evdi_params.h index 5d67c6b..3c83cc3 100644 --- a/module/evdi_params.h +++ b/module/evdi_params.h @@ -12,4 +12,7 @@ extern unsigned int evdi_loglevel; extern unsigned short int evdi_initial_device_count; +#include <linux/module.h> +MODULE_IMPORT_NS(DMA_BUF); + #endif /* EVDI_PARAMS_H */
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