VirtualBox

Changeset 81649 in vbox


Ignore:
Timestamp:
Nov 4, 2019 12:10:50 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
134407
Message:

Linux 5.4: no more arbitrary executable pages and more changes, ticketref:18945

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/cdefs.h

    r81549 r81649  
    11591159 * @sa RT_FALL_THRU  */
    11601160#if RT_GNUC_PREREQ(7, 0)
    1161 # define RT_FALL_THROUGH()      __attribute__((fallthrough))
     1161# define RT_FALL_THROUGH()      __attribute__((__fallthrough__))
    11621162#else
    11631163# define RT_FALL_THROUGH()      (void)0
  • trunk/src/VBox/Additions/linux/drm/vbox_drv.c

    r80712 r81649  
    306306
    307307static struct drm_driver driver = {
     308#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 0)
    308309        .driver_features =
    309310            DRIVER_MODESET | DRIVER_GEM | DRIVER_HAVE_IRQ |
    310 #if LINUX_VERSION_CODE < KERNEL_VERSION(5, 1, 0) && !defined(RHEL_81)
     311# if LINUX_VERSION_CODE < KERNEL_VERSION(5, 1, 0) && !defined(RHEL_81)
    311312            DRIVER_IRQ_SHARED |
    312 #endif
     313# endif /* < KERNEL_VERSION(5, 1, 0) && !defined(RHEL_81) */
    313314            DRIVER_PRIME,
     315#else /* >= KERNEL_VERSION(5, 4, 0) */
     316        .driver_features = DRIVER_MODESET | DRIVER_GEM | DRIVER_HAVE_IRQ,
     317#endif /* < KERNEL_VERSION(5, 4, 0) */
    314318        .dev_priv_size = 0,
    315319
  • trunk/src/VBox/Additions/linux/drm/vbox_main.c

    r80712 r81649  
    622622static inline u64 vbox_bo_mmap_offset(struct vbox_bo *bo)
    623623{
    624 #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 12, 0) && !defined(RHEL_70)
     624#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 4, 0)
     625        return drm_vma_node_offset_addr(&bo->bo.base.vma_node);
     626#elif LINUX_VERSION_CODE < KERNEL_VERSION(3, 12, 0) && !defined(RHEL_70)
    625627        return bo->bo.addr_space_offset;
    626628#else
    627629        return drm_vma_node_offset_addr(&bo->bo.vma_node);
    628 #endif
     630#endif /* >= KERNEL_VERSION(5, 4, 0) */
    629631}
    630632
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c

    r80735 r81649  
    925925    {
    926926        skb_frag_t *pFrag = &skb_shinfo(pBuf)->frags[i];
     927# if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 4, 0)
     928        pSG->aSegs[iSeg].cb = pFrag->bv_len;
     929        pSG->aSegs[iSeg].pv = VBOX_SKB_KMAP_FRAG(pFrag) + pFrag->bv_offset;
     930# else /* < KERNEL_VERSION(5, 4, 0) */
    927931        pSG->aSegs[iSeg].cb = pFrag->size;
    928932        pSG->aSegs[iSeg].pv = VBOX_SKB_KMAP_FRAG(pFrag) + pFrag->page_offset;
     933# endif /* >= KERNEL_VERSION(5, 4, 0) */
    929934        Log6((" %p", pSG->aSegs[iSeg].pv));
    930935        pSG->aSegs[iSeg++].Phys = NIL_RTHCPHYS;
     
    941946        {
    942947            skb_frag_t *pFrag = &skb_shinfo(pFragBuf)->frags[i];
     948# if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 4, 0)
     949            pSG->aSegs[iSeg].cb = pFrag->bv_len;
     950            pSG->aSegs[iSeg].pv = VBOX_SKB_KMAP_FRAG(pFrag) + pFrag->bv_offset;
     951# else /* < KERNEL_VERSION(5, 4, 0) */
    943952            pSG->aSegs[iSeg].cb = pFrag->size;
    944953            pSG->aSegs[iSeg].pv = VBOX_SKB_KMAP_FRAG(pFrag) + pFrag->page_offset;
     954# endif /* >= KERNEL_VERSION(5, 4, 0) */
    945955            Log6((" %p", pSG->aSegs[iSeg].pv));
    946956            pSG->aSegs[iSeg++].Phys = NIL_RTHCPHYS;
  • trunk/src/VBox/Runtime/common/fs/ntfsvfs.cpp

    r80585 r81649  
    10531053                    case 3: cClustersInRun |= (uint32_t)pbPairs[offPairs + 2] << 16; RT_FALL_THRU();
    10541054                    case 2: cClustersInRun |= (uint16_t)pbPairs[offPairs + 1] <<  8; RT_FALL_THRU();
    1055                     case 1: cClustersInRun |= (uint16_t)pbPairs[offPairs + 0] <<  0; RT_FALL_THRU();
     1055                    case 1: cClustersInRun |= (uint16_t)pbPairs[offPairs + 0] <<  0;
    10561056                }
    10571057                offPairs += cbRunField;
  • trunk/src/VBox/Runtime/r0drv/linux/thread2-r0drv-linux.c

    r76553 r81649  
    3737#include "internal/thread.h"
    3838
     39#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)
     40    #include <uapi/linux/sched/types.h>
     41#endif /* >= KERNEL_VERSION(4, 11, 0) */
    3942
    4043RTDECL(RTTHREAD) RTThreadSelf(void)
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette