VirtualBox

Changeset 88405 in vbox for trunk/src


Ignore:
Timestamp:
Apr 7, 2021 5:33:33 PM (4 years ago)
Author:
vboxsync
Message:

additions: linux: vboxvideo: fix build for RH 8.4 kernel: bugref:4567.

This issue was also mentioned in public ticket #20289.

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

Legend:

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

    r88274 r88405  
    263263};
    264264
    265 #if RTLNX_VER_MIN(5,9,0)
     265#if RTLNX_VER_MIN(5,9,0) || RTLNX_RHEL_MIN(8,4)
    266266static void
    267267#else
     
    287287        mutex_unlock(&vbox->hw_mutex);
    288288
    289 #if RTLNX_VER_MAX(5,9,0)
     289#if RTLNX_VER_MAX(5,9,0) && !RTLNX_RHEL_MAJ_PREREQ(8,4)
    290290        return 0;
    291291#endif
  • trunk/src/VBox/Additions/linux/drm/vbox_fb.c

    r88274 r88405  
    411411                        vbox_bo_unreserve(bo);
    412412                }
    413 #if RTLNX_VER_MIN(5,9,0)
     413#if RTLNX_VER_MIN(5,9,0) || RTLNX_RHEL_MIN(8,4)
    414414                drm_gem_object_put(afb->obj);
    415415#else
     
    444444        drm_fb_helper_prepare(dev, &fbdev->helper, &vbox_fb_helper_funcs);
    445445#endif
    446 #if RTLNX_VER_MIN(5,7,0)
     446#if RTLNX_VER_MIN(5,7,0) || RTLNX_RHEL_MIN(8,4)
    447447        ret = drm_fb_helper_init(dev, &fbdev->helper);
    448448#elif RTLNX_VER_MIN(4,11,0) || RTLNX_RHEL_MAJ_PREREQ(7,5)
     
    456456                return ret;
    457457
    458 #if RTLNX_VER_MAX(5,7,0)
     458#if RTLNX_VER_MAX(5,7,0) && !RTLNX_RHEL_MAJ_PREREQ(8,4)
    459459        ret = drm_fb_helper_single_add_all_connectors(&fbdev->helper);
    460460        if (ret)
  • trunk/src/VBox/Additions/linux/drm/vbox_main.c

    r86542 r88405  
    4747
    4848        if (vbox_fb->obj)
    49 #if RTLNX_VER_MIN(5,9,0)
     49#if RTLNX_VER_MIN(5,9,0) || RTLNX_RHEL_MIN(8,4)
    5050                drm_gem_object_put(vbox_fb->obj);
    5151#else
     
    226226        kfree(vbox_fb);
    227227err_unref_obj:
    228 #if RTLNX_VER_MIN(5,9,0)
     228#if RTLNX_VER_MIN(5,9,0) || RTLNX_RHEL_MIN(8,4)
    229229        drm_gem_object_put(obj);
    230230#else
     
    597597
    598598        ret = drm_gem_handle_create(file, gobj, &handle);
    599 #if RTLNX_VER_MIN(5,9,0)
     599#if RTLNX_VER_MIN(5,9,0) || RTLNX_RHEL_MIN(8,4)
    600600        drm_gem_object_put(gobj);
    601601#else
  • trunk/src/VBox/Additions/linux/drm/vbox_mode.c

    r88274 r88405  
    889889        vbox_bo_unreserve(bo);
    890890out_unref_obj:
    891 #if RTLNX_VER_MIN(5,9,0)
     891#if RTLNX_VER_MIN(5,9,0) || RTLNX_RHEL_MIN(8,4)
    892892        drm_gem_object_put(obj);
    893893#else
  • trunk/src/VBox/Additions/linux/drm/vbox_ttm.c

    r88274 r88405  
    579579static inline u64 vbox_bo_gpu_offset(struct vbox_bo *bo)
    580580{
    581 #if RTLNX_VER_MIN(5,9,0)
     581#if RTLNX_VER_MIN(5,9,0) || RTLNX_RHEL_MIN(8,4)
    582582        return bo->bo.mem.start << PAGE_SHIFT;
    583583#else
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