From 62b391ff43bf9e8b5d6505cf469382d99e6a08784df39274796532e66865675d Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Thu, 26 Apr 2018 16:28:14 +0000 Subject: [PATCH] - The 3rd time is the charm. OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=423 --- fixes_for_4.17.patch | 13 ++++++++++++- virtualbox.changes | 5 +++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/fixes_for_4.17.patch b/fixes_for_4.17.patch index 957c9bb..a9d637f 100644 --- a/fixes_for_4.17.patch +++ b/fixes_for_4.17.patch @@ -61,4 +61,15 @@ Index: VirtualBox-5.2.10/src/VBox/Additions/linux/drm/vbox_ttm.c kfree(tt); return NULL; } - +@@ -450,7 +459,11 @@ int vbox_bo_create(struct drm_device *de + + ret = ttm_bo_init(&vbox->ttm.bdev, &vboxbo->bo, size, + ttm_bo_type_device, &vboxbo->placement, ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 17, 0) ++ align >> PAGE_SHIFT, false, acc_size, ++#else + align >> PAGE_SHIFT, false, NULL, acc_size, ++#endif + #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 18, 0) || defined(RHEL_73) + NULL, + #endif diff --git a/virtualbox.changes b/virtualbox.changes index c3d672d..a40bb5f 100644 --- a/virtualbox.changes +++ b/virtualbox.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Apr 26 16:27:04 UTC 2018 - Larry.Finger@lwfinger.net + +- The 3rd time is the charm. + ------------------------------------------------------------------- Wed Apr 25 20:14:59 UTC 2018 - Larry.Finger@lwfinger.net