1
0
forked from pool/virtualbox
virtualbox/fixes_for_SLE15.patch
Larry Finger 9b7dcb7653 Accepting request 713743 from home:lwfinger:branches:Virtualization
- Update the patch for SLE15 to handle the changes in SP1.

- Fix Virtualbox for problem with stealing focus under Qt 5.13 bsc#1140084. File "fixes_focus_steal.patch" is added.

OBS-URL: https://build.opensuse.org/request/show/713743
OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=495
2019-07-10 14:36:54 +00:00

35 lines
1.2 KiB
Diff

Index: VirtualBox-6.0.8/src/VBox/Additions/linux/drm/vbox_drv.c
===================================================================
--- VirtualBox-6.0.8.orig/src/VBox/Additions/linux/drm/vbox_drv.c
+++ VirtualBox-6.0.8/src/VBox/Additions/linux/drm/vbox_drv.c
@@ -283,11 +283,6 @@ static struct drm_driver driver = {
.lastclose = vbox_driver_lastclose,
.master_set = vbox_master_set,
.master_drop = vbox_master_drop,
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 18, 0) || defined(RHEL_73)
-# if LINUX_VERSION_CODE < KERNEL_VERSION(4, 14, 0) && !defined(RHEL_75)
- .set_busid = drm_pci_set_busid,
-# endif
-#endif
.fops = &vbox_fops,
.irq_handler = vbox_irq_handler,
Index: VirtualBox-6.0.8/src/VBox/Additions/linux/drm/vbox_main.c
===================================================================
--- VirtualBox-6.0.8.orig/src/VBox/Additions/linux/drm/vbox_main.c
+++ VirtualBox-6.0.8/src/VBox/Additions/linux/drm/vbox_main.c
@@ -600,13 +600,6 @@ int vbox_dumb_destroy(struct drm_file *f
}
#endif
-#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 19, 0)
-static void ttm_bo_put(struct ttm_buffer_object *bo)
-{
- ttm_bo_unref(&bo);
-}
-#endif
-
void vbox_gem_free_object(struct drm_gem_object *obj)
{
struct vbox_bo *vbox_bo = gem_to_vbox_bo(obj);