1
0
forked from pool/virtualbox

- Make another 4.9 API change.

OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=285
This commit is contained in:
Larry Finger 2016-10-21 02:07:42 +00:00 committed by Git OBS Bridge
parent 04db1af634
commit 6ff234623b
2 changed files with 19 additions and 0 deletions

View File

@ -17,3 +17,17 @@ Index: VirtualBox-5.1.8/src/VBox/Additions/linux/sharedfolders/dirops.c
{
int err = 0, rc = VINF_SUCCESS;
struct sf_glob_info *sf_g = GET_GLOB_INFO(old_parent->i_sb);
Index: VirtualBox-5.1.8/src/VBox/Additions/linux/drm/vbox_ttm.c
===================================================================
--- VirtualBox-5.1.8.orig/src/VBox/Additions/linux/drm/vbox_ttm.c
+++ VirtualBox-5.1.8/src/VBox/Additions/linux/drm/vbox_ttm.c
@@ -221,7 +221,8 @@ static int vbox_bo_move(struct ttm_buffe
struct ttm_mem_reg *new_mem)
{
int r;
-#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 8, 0)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 8, 0) ||
+ LINUX_VERSION_CODE >= KERNEL_VERSION(4, 9, 0)
r = ttm_bo_move_memcpy(bo, evict, no_wait_gpu, new_mem);
#else
r = ttm_bo_move_memcpy(bo, evict, interruptible, no_wait_gpu, new_mem);

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Oct 20 23:04:09 UTC 2016 - Larry.Finger@lwfinger.net
- Make another 4.9 API change.
-------------------------------------------------------------------
Thu Oct 20 12:57:28 UTC 2016 - Larry.Finger@lwfinger.net