VirtualBox

Ignore:
Timestamp:
Jun 3, 2016 9:45:56 AM (9 years ago)
Author:
vboxsync
Message:

Additions/linux/drm: Linux 4.7 fixes

Location:
trunk/src/VBox/Additions/linux/drm
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/drm/vbox_drv.h

    r60866 r61431  
    286286    int ret;
    287287
     288#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 7, 0)
     289    ret = ttm_bo_reserve(&bo->bo, true, no_wait, NULL);
     290#else
    288291    ret = ttm_bo_reserve(&bo->bo, true, no_wait, false, 0);
     292#endif
    289293    if (ret)
    290294    {
  • trunk/src/VBox/Additions/linux/drm/vbox_fb.c

    r60352 r61431  
    7575                 int x, int y, int width, int height)
    7676{
    77     struct drm_device *dev = fbdev->helper.dev;
    7877    int i;
    7978
  • trunk/src/VBox/Additions/linux/drm/vbox_main.c

    r60906 r61431  
    203203
    204204    LogFunc(("vboxvideo: %d\n", __LINE__));
     205#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 7, 0)
     206    obj = drm_gem_object_lookup(filp, mode_cmd->handles[0]);
     207#else
    205208    obj = drm_gem_object_lookup(dev, filp, mode_cmd->handles[0]);
     209#endif
    206210    if (obj == NULL)
    207211        return ERR_PTR(-ENOENT);
     
    546550             dev, (unsigned)handle));
    547551    mutex_lock(&dev->struct_mutex);
     552#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 7, 0)
     553    obj = drm_gem_object_lookup(file, handle);
     554#else
    548555    obj = drm_gem_object_lookup(dev, file, handle);
     556#endif
    549557    if (obj == NULL) {
    550558        ret = -ENOENT;
  • trunk/src/VBox/Additions/linux/drm/vbox_mode.c

    r60919 r61431  
    720720        return -EINVAL;
    721721
     722#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 7, 0)
     723    obj = drm_gem_object_lookup(file_priv, handle);
     724#else
    722725    obj = drm_gem_object_lookup(crtc->dev, file_priv, handle);
     726#endif
    723727    if (obj)
    724728    {
Note: See TracChangeset for help on using the changeset viewer.

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