VirtualBox

Changeset 79690 in vbox for trunk/src/VBox/Additions/linux


Ignore:
Timestamp:
Jul 11, 2019 11:59:17 AM (6 years ago)
Author:
vboxsync
Message:

Additions/linux/vboxvideo: fixes for EL 7.2 and EL 7.3.
bugref:8282: Additions/linux: track kernel changes to vboxvideo in our own tree

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

Legend:

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

    r79025 r79690  
    322322        .master_set = vbox_master_set,
    323323        .master_drop = vbox_master_drop,
    324 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 18, 0) || defined(RHEL_73)
     324#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 18, 0) || defined(RHEL_72)
    325325# if LINUX_VERSION_CODE < KERNEL_VERSION(4, 14, 0) && !defined(RHEL_75) \
    326326  && !defined(OPENSUSE_151)
     
    373373                return -EINVAL;
    374374
     375#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 18, 0) || defined(RHEL_73)
    375376        return pci_register_driver(&vbox_pci_driver);
     377#else
     378        return drm_pci_init(&driver, &vbox_pci_driver);
     379#endif
    376380}
    377381
    378382static void __exit vbox_exit(void)
    379383{
     384#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 18, 0) || defined(RHEL_73)
    380385        pci_unregister_driver(&vbox_pci_driver);
     386#else
     387        drm_pci_exit(&driver, &vbox_pci_driver);
     388#endif
    381389}
    382390
  • trunk/src/VBox/Additions/linux/drm/vbox_fb.c

    r79026 r79690  
    426426        spin_lock_init(&fbdev->dirty_lock);
    427427
    428 #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 17, 0) && !defined(RHEL_73)
     428#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 17, 0) && !defined(RHEL_72)
    429429        fbdev->helper.funcs = &vbox_fb_helper_funcs;
    430430#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