VirtualBox

Changeset 85684 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Aug 11, 2020 11:18:43 AM (4 years ago)
Author:
vboxsync
Message:

Add/linux/vboxvideo: Try fix ol7.2-ol7.3 breakage. Introducing new macros for testing RHEL minor releases with a major one (VBOX_RHEL_MAJ_PREREQ).

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

Legend:

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

    r85649 r85684  
    5151#include <linux/pci.h>
    5252
     53/** @def VBOX_RHEL_MAJ_PREREQ
     54 * Require a minium minor release number for the given RedHat release.
     55 * @param a_iMajor      RHEL_MAJOR must _equal_ this.
     56 * @param a_iMinor      RHEL_MINOR must be greater or equal to this.
     57 */
    5358#if defined(RHEL_MAJOR) && defined(RHEL_MINOR)
     59# define VBOX_RHEL_MAJ_PREREQ(a_iMajor, a_iMinor) ((RHEL_MAJOR) == (a_iMajor) && (RHEL_MINOR) >= (a_iMinor))
    5460# if RHEL_MAJOR == 8 && RHEL_MINOR >= 2
    5561#  define RHEL_82
     
    8591#  define RHEL_70
    8692# endif
     93#else
     94# define VBOX_RHEL_MAJ_PREREQ(a_iMajor, a_iMinor) 0
    8795#endif
    8896
  • trunk/src/VBox/Additions/linux/drm/vbox_fb.c

    r84255 r85684  
    342342         */
    343343        drm_fb_helper_fill_info(info, &fbdev->helper, sizes);
    344 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) || defined(RHEL_72)) && !defined(RHEL_82)
     344#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) || VBOX_RHEL_MAJ_PREREQ(7, 5)
    345345        drm_fb_helper_fill_fix(info, fb->pitches[0], fb->format->depth);
    346346#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