VirtualBox

Changeset 86196 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Sep 21, 2020 1:17:37 PM (4 years ago)
Author:
vboxsync
Message:

Additions/linux:Guest additions 6.1.14 won't build in RHEL 8.3 beta ticketref:19863 round 2

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

Legend:

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

    r86174 r86196  
    6262static int vbox_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
    6363{
    64 #if RTLNX_VER_MAX(4,19,0)
    65         return drm_get_pci_dev(pdev, ent, &driver);
    66 #else
     64#if RTLNX_VER_MIN(4,19,0) || RTLNX_RHEL_MIN(8,3)
    6765        struct drm_device *dev = NULL;
    6866        int ret = 0;
     
    9189err_drv_alloc:
    9290        return ret;
     91#else /* < 4.19.0 || RHEL < 8.3 */
     92        return drm_get_pci_dev(pdev, ent, &driver);
    9393#endif
    9494}
     
    304304
    305305static struct drm_driver driver = {
    306 #if RTLNX_VER_MAX(5,4,0)
    307         .driver_features =
    308             DRIVER_MODESET | DRIVER_GEM | DRIVER_HAVE_IRQ |
     306#if RTLNX_VER_MAX(5,4,0) && !RTLNX_RHEL_MAJ_PREREQ(8,3)
     307        .driver_features = DRIVER_MODESET | DRIVER_GEM | DRIVER_HAVE_IRQ |
    309308# if RTLNX_VER_MAX(5,1,0) && !RTLNX_RHEL_MAJ_PREREQ(8,1)
    310309            DRIVER_IRQ_SHARED |
    311310# endif
    312311            DRIVER_PRIME,
    313 #else  /* >= 5.4.0 */
     312#else  /* >= 5.4.0 && RHEL >= 8.3 */
    314313        .driver_features = DRIVER_MODESET | DRIVER_GEM | DRIVER_HAVE_IRQ,
    315314#endif /* <  5.4.0 */
    316315        .dev_priv_size = 0,
    317316
    318 #if RTLNX_VER_MAX(4,19,0)
     317#if RTLNX_VER_MAX(4,19,0) && !RTLNX_RHEL_MAJ_PREREQ(8,3)
    319318    /* Legacy hooks, but still supported. */
    320319        .load = vbox_driver_load,
  • trunk/src/VBox/Additions/linux/drm/vbox_drv.h

    r86174 r86196  
    152152#endif
    153153
    154 #if RTLNX_VER_MAX(5,5,0)
    155 # include <drm/drmP.h>
    156 #else /* >= 5.5.0 */
     154#if RTLNX_VER_MIN(5,5,0) || RTLNX_RHEL_MIN(8,3)
    157155# include <drm/drm_file.h>
    158156# include <drm/drm_drv.h>
     
    162160# include <drm/drm_irq.h>
    163161# include <drm/drm_vblank.h>
    164 #endif /* >= 5.5.0 */
     162#else /* < 5.5.0 || RHEL < 8.3 */
     163# include <drm/drmP.h>
     164#endif
    165165#if RTLNX_VER_MIN(4,11,0) || RTLNX_RHEL_MAJ_PREREQ(7,5)
    166166# include <drm/drm_encoder.h>
     
    299299#undef CURSOR_DATA_SIZE
    300300
    301 #if RTLNX_VER_MAX(4,19,0)
     301#if RTLNX_VER_MIN(4,19,0) || RTLNX_RHEL_MIN(8,3)
     302int vbox_driver_load(struct drm_device *dev);
     303#else
    302304int vbox_driver_load(struct drm_device *dev, unsigned long flags);
    303 #else
    304 int vbox_driver_load(struct drm_device *dev);
    305305#endif
    306306#if RTLNX_VER_MIN(4,11,0) || RTLNX_RHEL_MAJ_PREREQ(7,5)
  • trunk/src/VBox/Additions/linux/drm/vbox_main.c

    r86174 r86196  
    448448}
    449449
    450 #if RTLNX_VER_MAX(4,19,0)
     450#if RTLNX_VER_MIN(4,19,0) || RTLNX_RHEL_MIN(8,3)
     451int vbox_driver_load(struct drm_device *dev)
     452#else
    451453int vbox_driver_load(struct drm_device *dev, unsigned long flags)
    452 #else
    453 int vbox_driver_load(struct drm_device *dev)
    454454#endif
    455455{
     
    622622static inline u64 vbox_bo_mmap_offset(struct vbox_bo *bo)
    623623{
    624 #if RTLNX_VER_MIN(5,4,0)
     624#if RTLNX_VER_MIN(5,4,0) || RTLNX_RHEL_MIN(8,3)
    625625        return drm_vma_node_offset_addr(&bo->bo.base.vma_node);
    626626#elif RTLNX_VER_MAX(3,12,0) && !RTLNX_RHEL_MAJ_PREREQ(7,0)
  • trunk/src/VBox/Additions/linux/drm/vbox_mode.c

    r86174 r86196  
    399399                                                    *connector)
    400400{
    401 #if RTLNX_VER_MIN(5,5,0)
     401#if RTLNX_VER_MIN(5,5,0) || RTLNX_RHEL_MIN(8,3)
    402402        struct drm_encoder *encoder;
    403403
     
    405405        drm_connector_for_each_possible_encoder(connector, encoder)
    406406            return encoder;
    407 #else /* < 5.5 */
     407#else /* < 5.5 || RHEL < 8.3 */
    408408        int enc_id = connector->encoder_ids[0];
    409409
     
    415415                return drm_encoder_find(connector->dev, enc_id);
    416416# endif
    417 #endif /* < 5.5 */
     417#endif /* < 5.5 || RHEL < 8.3 */
    418418        return NULL;
    419419}
  • trunk/src/VBox/Additions/linux/drm/vbox_ttm.c

    r86174 r86196  
    304304                                 dev->anon_inode->i_mapping,
    305305#endif
    306 #if RTLNX_VER_MIN(5,5,0)
     306#if RTLNX_VER_MIN(5,5,0) || RTLNX_RHEL_MIN(8,3)
    307307                                 dev->vma_offset_manager,
    308308#elif RTLNX_VER_MAX(5,2,0) && !RTLNX_RHEL_MAJ_PREREQ(8,2)
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