Changeset 61431 in vbox for trunk/src/VBox/Additions/linux/drm
- Timestamp:
- Jun 3, 2016 9:45:56 AM (9 years ago)
- 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 286 286 int ret; 287 287 288 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 7, 0) 289 ret = ttm_bo_reserve(&bo->bo, true, no_wait, NULL); 290 #else 288 291 ret = ttm_bo_reserve(&bo->bo, true, no_wait, false, 0); 292 #endif 289 293 if (ret) 290 294 { -
trunk/src/VBox/Additions/linux/drm/vbox_fb.c
r60352 r61431 75 75 int x, int y, int width, int height) 76 76 { 77 struct drm_device *dev = fbdev->helper.dev;78 77 int i; 79 78 -
trunk/src/VBox/Additions/linux/drm/vbox_main.c
r60906 r61431 203 203 204 204 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 205 208 obj = drm_gem_object_lookup(dev, filp, mode_cmd->handles[0]); 209 #endif 206 210 if (obj == NULL) 207 211 return ERR_PTR(-ENOENT); … … 546 550 dev, (unsigned)handle)); 547 551 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 548 555 obj = drm_gem_object_lookup(dev, file, handle); 556 #endif 549 557 if (obj == NULL) { 550 558 ret = -ENOENT; -
trunk/src/VBox/Additions/linux/drm/vbox_mode.c
r60919 r61431 720 720 return -EINVAL; 721 721 722 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 7, 0) 723 obj = drm_gem_object_lookup(file_priv, handle); 724 #else 722 725 obj = drm_gem_object_lookup(crtc->dev, file_priv, handle); 726 #endif 723 727 if (obj) 724 728 {
Note:
See TracChangeset
for help on using the changeset viewer.