From 6ff234623b575409cb94917a9b864e71c1fbbe27deca4d42393b2e9b5bcc19a5 Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Fri, 21 Oct 2016 02:07:42 +0000 Subject: [PATCH] - Make another 4.9 API change. OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=285 --- vbox_fix_4.9_api_changes.patch | 14 ++++++++++++++ virtualbox.changes | 5 +++++ 2 files changed, 19 insertions(+) diff --git a/vbox_fix_4.9_api_changes.patch b/vbox_fix_4.9_api_changes.patch index 1b4c4d7..6fe6b34 100644 --- a/vbox_fix_4.9_api_changes.patch +++ b/vbox_fix_4.9_api_changes.patch @@ -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); diff --git a/virtualbox.changes b/virtualbox.changes index 1ef8dcb..037bd28 100644 --- a/virtualbox.changes +++ b/virtualbox.changes @@ -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