- Fix typo that broke builds for kernel 4.16.

OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=421
This commit is contained in:
Larry Finger 2018-04-25 20:15:54 +00:00 committed by Git OBS Bridge
parent 419c2c8aa9
commit 0b19c9b9d8
2 changed files with 6 additions and 12 deletions

View File

@ -61,15 +61,4 @@ Index: VirtualBox-5.2.10/src/VBox/Additions/linux/drm/vbox_ttm.c
kfree(tt); kfree(tt);
return NULL; 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(3, 18, 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

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Apr 25 20:14:59 UTC 2018 - Larry.Finger@lwfinger.net
- Fix typo that broke builds for kernel 4.16.
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Apr 25 15:23:08 UTC 2018 - Larry.Finger@lwfinger.net Wed Apr 25 15:23:08 UTC 2018 - Larry.Finger@lwfinger.net