1
0
forked from pool/virtualbox

- Add file "fixes_for_4.16.patch" to handle API changes in kernel 4.16.

OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=408
This commit is contained in:
Larry Finger 2018-03-03 19:16:20 +00:00 committed by Git OBS Bridge
parent dfd1141131
commit 6ddb4b0ea4
3 changed files with 38 additions and 0 deletions

30
fixes_for_4.16.patch Normal file
View File

@ -0,0 +1,30 @@
Index: VirtualBox-5.2.8/src/VBox/Additions/linux/drm/vbox_ttm.c
===================================================================
--- VirtualBox-5.2.8.orig/src/VBox/Additions/linux/drm/vbox_ttm.c
+++ VirtualBox-5.2.8/src/VBox/Additions/linux/drm/vbox_ttm.c
@@ -198,6 +198,17 @@ static void vbox_ttm_io_mem_free(struct
{
}
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 16, 0)
+static int vbox_bo_move(struct ttm_buffer_object *bo, bool evict,
+ struct ttm_operation_ctx *ctx,
+ struct ttm_mem_reg *new_mem)
+{
+ int r;
+
+ r = ttm_bo_move_memcpy(bo, ctx, new_mem);
+ return r;
+}
+#else
static int vbox_bo_move(struct ttm_buffer_object *bo,
bool evict, bool interruptible,
bool no_wait_gpu, struct ttm_mem_reg *new_mem)
@@ -213,6 +224,7 @@ static int vbox_bo_move(struct ttm_buffe
#endif
return r;
}
+#endif
static void vbox_ttm_backend_destroy(struct ttm_tt *tt)
{

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Mar 3 19:15:12 UTC 2018 - Larry.Finger@lwfinger.net
- Add file "fixes_for_4.16.patch" to handle API changes in kernel 4.16.
-------------------------------------------------------------------
Wed Feb 28 20:08:22 UTC 2018 - Larry.Finger@lwfinger.net

View File

@ -115,6 +115,8 @@ Patch119: fixes_for_leap15.patch
Patch120: fixes_for_python.patch
# Remove vboxvideo from build
Patch121: remove_vbox_video_build.patch
# Fix build for kernel 4.16
Patch122: fixes_for_4.16.patch
#
BuildRequires: LibVNCServer-devel
BuildRequires: SDL-devel
@ -407,6 +409,7 @@ as an "extpack" for VirtualBox. The implementation is licensed under GPL.
%endif
%patch120 -p1
%patch121 -p1
%patch122 -p1
#copy user manual
cp %{SOURCE1} UserManual.pdf