VirtualBox

Ignore:
Timestamp:
Oct 4, 2018 3:44:01 PM (6 years ago)
Author:
vboxsync
Message:

Additions/linux/vboxvideo: fix building on various EL 7 minor releases.
bugref:4567: Linux kernel driver maintenance

File:
1 edited

Legend:

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

    r74581 r74615  
    5959#  define RHEL_73
    6060# endif
     61# if RHEL_MAJOR == 7 && RHEL_MINOR >= 2
     62#  define RHEL_72
     63# endif
    6164# if RHEL_MAJOR == 7 && RHEL_MINOR >= 1
    6265#  define RHEL_71
     66# endif
     67# if RHEL_MAJOR == 7 && RHEL_MINOR >= 0
     68#  define RHEL_70
    6369# endif
    6470#endif
     
    8086
    8187#include <drm/drmP.h>
    82 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 18, 0) || defined(RHEL_73)
     88#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 18, 0) || defined(RHEL_72)
    8389#include <drm/drm_gem.h>
    8490#endif
     
    262268#endif
    263269
    264 #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 15, 0) && !defined(RHEL_73)
     270#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 15, 0) && !defined(RHEL_71)
    265271#define CRTC_FB(crtc) ((crtc)->fb)
    266272#else
     
    293299        struct ttm_bo_kmap_obj kmap;
    294300        struct drm_gem_object gem;
    295 #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 18, 0) && !defined(RHEL_73)
     301#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 18, 0) && !defined(RHEL_72)
    296302        u32 placements[3];
    297303#else
     
    368374struct sg_table *vbox_gem_prime_get_sg_table(struct drm_gem_object *obj);
    369375struct drm_gem_object *vbox_gem_prime_import_sg_table(struct drm_device *dev,
    370 #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 18, 0) && !defined(RHEL_73)
     376#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 18, 0) && !defined(RHEL_72)
    371377                                                      size_t size,
    372378#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