VirtualBox

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


Ignore:
Timestamp:
Aug 8, 2020 1:35:48 PM (4 years ago)
Author:
vboxsync
Message:

ticketref:19521 Can't build kernel modules on SLES12 SP5

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

Legend:

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

    r83109 r85649  
    327327#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 18, 0) || defined(RHEL_72)
    328328# if LINUX_VERSION_CODE < KERNEL_VERSION(4, 14, 0) && !defined(RHEL_75) \
    329   && !defined(OPENSUSE_151)
     329  && !defined(OPENSUSE_151) && !defined(OPENSUSE_125)
    330330        .set_busid = drm_pci_set_busid,
    331331# endif
  • trunk/src/VBox/Additions/linux/drm/vbox_drv.h

    r84255 r85649  
    9090# if CONFIG_SUSE_VERSION == 15 && CONFIG_SUSE_PATCHLEVEL == 1
    9191#  define OPENSUSE_151
     92# endif
     93# if CONFIG_SUSE_VERSION == 12 && CONFIG_SUSE_PATCHLEVEL >= 5
     94#  define OPENSUSE_125
    9295# endif
    9396#endif
  • trunk/src/VBox/Additions/linux/drm/vbox_main.c

    r82968 r85649  
    606606#endif
    607607
    608 #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 19, 0) && !defined(OPENSUSE_151) && !defined(RHEL_77) && !defined(RHEL_81)
     608#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 19, 0) && !defined(OPENSUSE_151) && !defined(OPENSUSE_125) \
     609  && !defined(RHEL_77) && !defined(RHEL_81)
    609610static void ttm_bo_put(struct ttm_buffer_object *bo)
    610611{
  • trunk/src/VBox/Additions/linux/drm/vbox_mode.c

    r83073 r85649  
    548548                sum += edid[i];
    549549        edid[EDID_SIZE - 1] = (0x100 - (sum & 0xFF)) & 0xFF;
    550 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0) || defined(OPENSUSE_151) || defined(RHEL_77) || defined(RHEL_81)
     550#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0) || defined(OPENSUSE_151) || defined(OPENSUSE_125) \
     551  || defined(RHEL_77) || defined(RHEL_81)
    551552        drm_connector_update_edid_property(connector, (struct edid *)edid);
    552553#else
     
    723724#endif
    724725
    725 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0) || defined(OPENSUSE_151) || defined(RHEL_77) || defined(RHEL_81)
     726#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0) || defined(OPENSUSE_151) || defined(OPENSUSE_125) \
     727  || defined(RHEL_77) || defined(RHEL_81)
    726728        drm_connector_attach_encoder(connector, encoder);
    727729#else
  • trunk/src/VBox/Additions/linux/drm/vbox_ttm.c

    r84255 r85649  
    212212
    213213#if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 17, 0)) && !defined(RHEL_76) \
    214   && !defined(OPENSUSE_151)
     214  && !defined(OPENSUSE_151) && !defined(OPENSUSE_125)
    215215static struct ttm_tt *vbox_ttm_tt_create(struct ttm_bo_device *bdev,
    216216                                         unsigned long size,
     
    230230        tt->func = &vbox_tt_backend_func;
    231231#if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 17, 0)) && !defined(RHEL_76) \
    232   && !defined(OPENSUSE_151)
     232  && !defined(OPENSUSE_151) && !defined(OPENSUSE_125)
    233233        if (ttm_tt_init(tt, bdev, size, page_flags, dummy_read_page)) {
    234234#else
     
    244244#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 17, 0)
    245245# if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 16, 0)) && !defined(RHEL_76) \
    246   && !defined(OPENSUSE_151)
     246  && !defined(OPENSUSE_151) && !defined(OPENSUSE_125)
    247247static int vbox_ttm_tt_populate(struct ttm_tt *ttm)
    248248{
     
    279279#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0) || defined(RHEL_75)
    280280# if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 16, 0)) && !defined(RHEL_76) \
    281   && !defined(OPENSUSE_151)
     281  && !defined(OPENSUSE_151) && !defined(OPENSUSE_125)
    282282        .io_mem_pfn = ttm_bo_default_io_mem_pfn,
    283283# endif
     
    430430                          ttm_bo_type_device, &vboxbo->placement,
    431431#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 17, 0) && !defined(RHEL_76) \
    432   && !defined(OPENSUSE_151)
     432  && !defined(OPENSUSE_151) && !defined(OPENSUSE_125)
    433433                          align >> PAGE_SHIFT, false, NULL, acc_size,
    434434#else
     
    460460{
    461461#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 16, 0)) || defined(RHEL_76) \
    462   || defined(OPENSUSE_151)
     462  || defined(OPENSUSE_151) || defined(OPENSUSE_125)
    463463        struct ttm_operation_ctx ctx = { false, false };
    464464#endif
     
    479479
    480480#if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 16, 0)) && !defined(RHEL_76) \
    481   && !defined(OPENSUSE_151)
     481  && !defined(OPENSUSE_151) && !defined(OPENSUSE_125)
    482482        ret = ttm_bo_validate(&bo->bo, &bo->placement, false, false);
    483483#else
     
    498498{
    499499#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 16, 0)) || defined(RHEL_76) \
    500   || defined(OPENSUSE_151)
     500  || defined(OPENSUSE_151) || defined(OPENSUSE_125)
    501501        struct ttm_operation_ctx ctx = { false, false };
    502502#endif
     
    515515
    516516#if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 16, 0)) && !defined(RHEL_76) \
    517   && !defined(OPENSUSE_151)
     517  && !defined(OPENSUSE_151) && !defined(OPENSUSE_125)
    518518        ret = ttm_bo_validate(&bo->bo, &bo->placement, false, false);
    519519#else
     
    534534{
    535535#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 16, 0)) || defined(RHEL_76) \
    536   || defined(OPENSUSE_151)
     536  || defined(OPENSUSE_151) || defined(OPENSUSE_125)
    537537        struct ttm_operation_ctx ctx = { false, false };
    538538#endif
     
    556556
    557557#if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 16, 0)) && !defined(RHEL_76) \
    558   && !defined(OPENSUSE_151)
     558  && !defined(OPENSUSE_151) && !defined(OPENSUSE_125)
    559559        ret = ttm_bo_validate(&bo->bo, &bo->placement, false, false);
    560560#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