VirtualBox

Ticket #15896 (closed defect: fixed)

Opened 11 months ago

Last modified 10 months ago

linux kernel-4.8-rc4 fail to build guest additions vboxvideo/vbox_ttm.c error: too few arguments to function ‘ttm_bo_move_memcpy’ -> fixed in releases higher than 5.1.4

Reported by: sergiomb Owned by:
Priority: major Component: guest additions/x11/graphics
Version: VirtualBox 5.1.4 Keywords:
Cc: Guest type: Linux
Host type: Linux

Description

/tmp/akmodsbuild.rAatyUU4/BUILD/VirtualBox-kmod-5.1.4/_kmod_build_4.8.0-0.rc4.git3.2.fc26.x86_64/vboxvideo/vbox_ttm.c: In function ‘vbox_bo_move’:
/tmp/akmodsbuild.rAatyUU4/BUILD/VirtualBox-kmod-5.1.4/_kmod_build_4.8.0-0.rc4.git3.2.fc26.x86_64/vboxvideo/vbox_ttm.c:224:9: error: too few arguments to function ‘ttm_bo_move_memcpy’
     r = ttm_bo_move_memcpy(bo, evict, no_wait_gpu, new_mem);
         ^
In file included from /tmp/akmodsbuild.rAatyUU4/BUILD/VirtualBox-kmod-5.1.4/_kmod_build_4.8.0-0.rc4.git3.2.fc26.x86_64/vboxvideo/vbox_drv.h:62:0,
                 from /tmp/akmodsbuild.rAatyUU4/BUILD/VirtualBox-kmod-5.1.4/_kmod_build_4.8.0-0.rc4.git3.2.fc26.x86_64/vboxvideo/vbox_ttm.c:48:
./include/drm/ttm/ttm_bo_driver.h:1002:12: note: declared here
 extern int ttm_bo_move_memcpy(struct ttm_buffer_object *bo,
            ^
scripts/Makefile.build:289: recipe for target '/tmp/akmodsbuild.rAatyUU4/BUILD/VirtualBox-kmod-5.1.4/_kmod_build_4.8.0-0.rc4.git3.2.fc26.x86_64/vboxvideo/vbox_ttm.o' failed

I began to dig and it is  https://patchwork.kernel.org/patch/9157413/ it easy to fix just for kernel-4.8-rc4

-    r = ttm_bo_move_memcpy(bo, evict, no_wait_gpu, new_mem);
+    r = ttm_bo_move_memcpy(bo, evict, interruptible, no_wait_gpu, new_mem);

for all kernels leave up to you.

Thanks

Attachments

5.1.4-2-for-4.8.0-0.rc5.git2.2.fc26.x86_64.failed.log Download (59.3 KB) - added by sergiomb 11 months ago.
for-4.8.0-0.rc5.git2.2.fc26.x86_64.failed.log

Change History

comment:1 Changed 11 months ago by sergiomb

comment:2 Changed 11 months ago by michael

Please try the latest Additions test build<1>.

<1> https://www.virtualbox.org/wiki/Testbuilds

Changed 11 months ago by sergiomb

for-4.8.0-0.rc5.git2.2.fc26.x86_64.failed.log

comment:3 Changed 11 months ago by sergiomb

Hi, it is failing with just released 4.8.0-0.rc5.git2.2.fc26.x86_64 , since don't find any patch yet in  https://build.opensuse.org/package/show/Virtualization/virtualbox , let me know if it an easy fix and what is the patch . Thanks.

comment:4 Changed 11 months ago by michael

Index: src/VBox/Additions/linux/drm/vbox_drv.c
===================================================================
--- src/VBox/Additions/linux/drm/vbox_drv.c	(revision 110587)
+++ src/VBox/Additions/linux/drm/vbox_drv.c	(working copy)
@@ -65,7 +65,7 @@
 
 static struct drm_driver driver;
 
-static DEFINE_PCI_DEVICE_TABLE(pciidlist) =
+static const struct pci_device_id pciidlist[] =
 {
     {0x80ee, 0xbeef, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
     {0, 0, 0},

comment:5 Changed 11 months ago by sergiomb

Thanks , now I can build kmods for 4.8.0-0.rc5.git2.2

comment:6 Changed 11 months ago by michael

  • Summary changed from linux kernel-4.8-rc4 fail to build guest additions vboxvideo/vbox_ttm.c error: too few arguments to function ‘ttm_bo_move_memcpy’ to linux kernel-4.8-rc4 fail to build guest additions vboxvideo/vbox_ttm.c error: too few arguments to function ‘ttm_bo_move_memcpy’ -> fixed in releases higher than 5.1.4

Thanks for confirming.

comment:7 Changed 10 months ago by frank

  • Status changed from new to closed
  • Resolution set to fixed

Fix is part of VBox 5.1.6.

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use