VirtualBox

Changeset 86173 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Sep 18, 2020 3:08:06 PM (4 years ago)
Author:
vboxsync
Message:

Additions/linux: add. fixes for round 1 ticketref:19863

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

Legend:

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

    r86172 r86173  
    6262static int vbox_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
    6363{
    64 #if RTLNX_VER_MAX(4,19,0) && RTLNX_RHEL_MAX(8,3)
     64#if RTLNX_VER_MAX(4,19,0) && !RTLNX_RHEL_MAJ_PREREQ(8,3)
    6565        return drm_get_pci_dev(pdev, ent, &driver);
    6666#else
     
    304304
    305305static struct drm_driver driver = {
    306 #if RTLNX_VER_MAX(5,4,0) && RTLNX_RHEL_MAX(8,3)
     306#if RTLNX_VER_MAX(5,4,0) && !RTLNX_RHEL_MAJ_PREREQ(8,3)
    307307        .driver_features =
    308308            DRIVER_MODESET | DRIVER_GEM | DRIVER_HAVE_IRQ |
     
    316316        .dev_priv_size = 0,
    317317
    318 #if RTLNX_VER_MAX(4,19,0) && RTLNX_RHEL_MAX(8,3)
     318#if RTLNX_VER_MAX(4,19,0) && !RTLNX_RHEL_MAJ_PREREQ(8,3)
    319319    /* Legacy hooks, but still supported. */
    320320        .load = vbox_driver_load,
  • trunk/src/VBox/Additions/linux/drm/vbox_drv.h

    r86172 r86173  
    152152#endif
    153153
    154 #if RTLNX_VER_MAX(5,5,0) && RTLNX_RHEL_MAX(8,3)
     154#if RTLNX_VER_MAX(5,5,0) && !RTLNX_RHEL_MAJ_PREREQ(8,3)
    155155# include <drm/drmP.h>
    156156#else /* >= 5.5.0 || RHEL >= 8.3 */
  • trunk/src/VBox/Additions/linux/drm/vbox_main.c

    r86172 r86173  
    448448}
    449449
    450 #if RTLNX_VER_MAX(4,19,0) && RTLNX_RHEL_MAX(8,3)
     450#if RTLNX_VER_MAX(4,19,0) && !RTLNX_RHEL_MAJ_PREREQ(8,3)
    451451int vbox_driver_load(struct drm_device *dev, unsigned long flags)
    452452#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