VirtualBox

Changeset 72641 in vbox for trunk


Ignore:
Timestamp:
Jun 21, 2018 3:20:47 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
123147
Message:

Additions/vboxvideo: make vboxvideo build against Linux 4.17.
ticketref:17801:Guest additions fail to compile against kernel 4.17

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/drm/vbox_ttm.c

    r71985 r72641  
    209209};
    210210
     211#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 17, 0)
    211212static struct ttm_tt *vbox_ttm_tt_create(struct ttm_bo_device *bdev,
    212213                                         unsigned long size,
    213214                                         u32 page_flags,
    214215                                         struct page *dummy_read_page)
     216#else
     217static struct ttm_tt *vbox_ttm_tt_create(struct ttm_buffer_object *bo,
     218                                                                                 u32 page_flags)
     219#endif
    215220{
    216221        struct ttm_tt *tt;
     
    221226
    222227        tt->func = &vbox_tt_backend_func;
     228#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 17, 0)
    223229        if (ttm_tt_init(tt, bdev, size, page_flags, dummy_read_page)) {
     230#else
     231        if (ttm_tt_init(tt, bo, page_flags)) {
     232#endif
    224233                kfree(tt);
    225234                return NULL;
     
    402411        ret = ttm_bo_init(&vbox->ttm.bdev, &vboxbo->bo, size,
    403412                          ttm_bo_type_device, &vboxbo->placement,
     413#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 17, 0)
    404414                          align >> PAGE_SHIFT, false, NULL, acc_size,
     415#else
     416                          align >> PAGE_SHIFT, false, acc_size,
     417#endif
    405418#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 18, 0) || defined(RHEL_73)
    406419                          NULL,
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette