Hello community,
here is the log from the commit of package virtualbox for openSUSE:Factory checked in at 2018-04-30 22:48:46
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/virtualbox (Old)
and /work/SRC/openSUSE:Factory/.virtualbox.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "virtualbox"
Mon Apr 30 22:48:46 2018 rev:162 rq:601697 version:5.2.10
Changes:
--------
--- /work/SRC/openSUSE:Factory/virtualbox/virtualbox.changes 2018-04-26 13:22:49.685493807 +0200
+++ /work/SRC/openSUSE:Factory/.virtualbox.new/virtualbox.changes 2018-04-30 22:48:57.422313323 +0200
@@ -1,0 +2,15 @@
+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
+
+- Fix typo that broke builds for kernel 4.16.
+
+-------------------------------------------------------------------
+Wed Apr 25 15:23:08 UTC 2018 - Larry.Finger@lwfinger.net
+
+- Update "fixes_for_4.17.patch" for some additional API changes.
+
+-------------------------------------------------------------------
@@ -4 +19 @@
-- Add gcc8-configure.patch to fix boo#1090367.
+- Add "gcc8-configure.patch" to fix boo#1090367.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ fixes_for_4.17.patch ++++++
--- /var/tmp/diff_new_pack.ASyRwg/_old 2018-04-30 22:48:59.942221384 +0200
+++ /var/tmp/diff_new_pack.ASyRwg/_new 2018-04-30 22:48:59.946221238 +0200
@@ -10,10 +10,10 @@
Signed-off-by: Larry Finger
-Index: VirtualBox-5.2.8/src/VBox/HostDrivers/VBoxPci/linux/VBoxPci-linux.c
+Index: VirtualBox-5.2.10/src/VBox/HostDrivers/VBoxPci/linux/VBoxPci-linux.c
===================================================================
---- VirtualBox-5.2.8.orig/src/VBox/HostDrivers/VBoxPci/linux/VBoxPci-linux.c
-+++ VirtualBox-5.2.8/src/VBox/HostDrivers/VBoxPci/linux/VBoxPci-linux.c
+--- VirtualBox-5.2.10.orig/src/VBox/HostDrivers/VBoxPci/linux/VBoxPci-linux.c
++++ VirtualBox-5.2.10/src/VBox/HostDrivers/VBoxPci/linux/VBoxPci-linux.c
@@ -89,7 +89,14 @@ MODULE_VERSION(VBOX_VERSION_STRING " r"
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 20)
# define PCI_DEV_GET(v,d,p) pci_get_device(v,d,p)
@@ -29,3 +29,47 @@
#else
# define PCI_DEV_GET(v,d,p) pci_find_device(v,d,p)
# define PCI_DEV_PUT(x) do { } while (0)
+Index: VirtualBox-5.2.10/src/VBox/Additions/linux/drm/vbox_ttm.c
+===================================================================
+--- VirtualBox-5.2.10.orig/src/VBox/Additions/linux/drm/vbox_ttm.c
++++ VirtualBox-5.2.10/src/VBox/Additions/linux/drm/vbox_ttm.c
+@@ -236,10 +236,15 @@ static struct ttm_backend_func vbox_tt_b
+ .destroy = &vbox_ttm_backend_destroy,
+ };
+
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 17, 0)
++static struct ttm_tt *vbox_ttm_tt_create(struct ttm_buffer_object *bo,
++ u32 page_flags)
++#else
+ static struct ttm_tt *vbox_ttm_tt_create(struct ttm_bo_device *bdev,
+ unsigned long size,
+ u32 page_flags,
+ struct page *dummy_read_page)
++#endif
+ {
+ struct ttm_tt *tt;
+
+@@ -248,7 +253,11 @@ static struct ttm_tt *vbox_ttm_tt_create
+ return NULL;
+
+ tt->func = &vbox_tt_backend_func;
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 17, 0)
++ if (ttm_tt_init(tt, bo, page_flags)) {
++#else
+ if (ttm_tt_init(tt, bdev, size, page_flags, dummy_read_page)) {
++#endif
+ 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