Changeset 81649 in vbox
- Timestamp:
- Nov 4, 2019 12:10:50 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 134407
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/cdefs.h
r81549 r81649 1159 1159 * @sa RT_FALL_THRU */ 1160 1160 #if RT_GNUC_PREREQ(7, 0) 1161 # define RT_FALL_THROUGH() __attribute__(( fallthrough))1161 # define RT_FALL_THROUGH() __attribute__((__fallthrough__)) 1162 1162 #else 1163 1163 # define RT_FALL_THROUGH() (void)0 -
trunk/src/VBox/Additions/linux/drm/vbox_drv.c
r80712 r81649 306 306 307 307 static struct drm_driver driver = { 308 #if LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 0) 308 309 .driver_features = 309 310 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) 311 312 DRIVER_IRQ_SHARED | 312 # endif313 # endif /* < KERNEL_VERSION(5, 1, 0) && !defined(RHEL_81) */ 313 314 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) */ 314 318 .dev_priv_size = 0, 315 319 -
trunk/src/VBox/Additions/linux/drm/vbox_main.c
r80712 r81649 622 622 static inline u64 vbox_bo_mmap_offset(struct vbox_bo *bo) 623 623 { 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) 625 627 return bo->bo.addr_space_offset; 626 628 #else 627 629 return drm_vma_node_offset_addr(&bo->bo.vma_node); 628 #endif 630 #endif /* >= KERNEL_VERSION(5, 4, 0) */ 629 631 } 630 632 -
trunk/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c
r80735 r81649 925 925 { 926 926 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) */ 927 931 pSG->aSegs[iSeg].cb = pFrag->size; 928 932 pSG->aSegs[iSeg].pv = VBOX_SKB_KMAP_FRAG(pFrag) + pFrag->page_offset; 933 # endif /* >= KERNEL_VERSION(5, 4, 0) */ 929 934 Log6((" %p", pSG->aSegs[iSeg].pv)); 930 935 pSG->aSegs[iSeg++].Phys = NIL_RTHCPHYS; … … 941 946 { 942 947 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) */ 943 952 pSG->aSegs[iSeg].cb = pFrag->size; 944 953 pSG->aSegs[iSeg].pv = VBOX_SKB_KMAP_FRAG(pFrag) + pFrag->page_offset; 954 # endif /* >= KERNEL_VERSION(5, 4, 0) */ 945 955 Log6((" %p", pSG->aSegs[iSeg].pv)); 946 956 pSG->aSegs[iSeg++].Phys = NIL_RTHCPHYS; -
trunk/src/VBox/Runtime/common/fs/ntfsvfs.cpp
r80585 r81649 1053 1053 case 3: cClustersInRun |= (uint32_t)pbPairs[offPairs + 2] << 16; RT_FALL_THRU(); 1054 1054 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; 1056 1056 } 1057 1057 offPairs += cbRunField; -
trunk/src/VBox/Runtime/r0drv/linux/thread2-r0drv-linux.c
r76553 r81649 37 37 #include "internal/thread.h" 38 38 39 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) 40 #include <uapi/linux/sched/types.h> 41 #endif /* >= KERNEL_VERSION(4, 11, 0) */ 39 42 40 43 RTDECL(RTTHREAD) RTThreadSelf(void)
Note:
See TracChangeset
for help on using the changeset viewer.