Changeset 73097 in vbox for trunk/src/VBox/Runtime/r0drv/linux
- Timestamp:
- Jul 12, 2018 9:06:33 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 123672
- Location:
- trunk/src/VBox/Runtime/r0drv/linux
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c
r69111 r73097 296 296 * the page pointer array. 297 297 */ 298 PRTR0MEMOBJLNX pMemLnx = (PRTR0MEMOBJLNX)rtR0MemObjNew(RT_ OFFSETOF(RTR0MEMOBJLNX, apPages[cPages]), enmType, NULL, cb);298 PRTR0MEMOBJLNX pMemLnx = (PRTR0MEMOBJLNX)rtR0MemObjNew(RT_UOFFSETOF_DYN(RTR0MEMOBJLNX, apPages[cPages]), enmType, NULL, cb); 299 299 if (!pMemLnx) 300 300 return VERR_NO_MEMORY; … … 1056 1056 * Allocate the memory object and a temporary buffer for the VMAs. 1057 1057 */ 1058 pMemLnx = (PRTR0MEMOBJLNX)rtR0MemObjNew(RT_ OFFSETOF(RTR0MEMOBJLNX, apPages[cPages]), RTR0MEMOBJTYPE_LOCK, (void *)R3Ptr, cb);1058 pMemLnx = (PRTR0MEMOBJLNX)rtR0MemObjNew(RT_UOFFSETOF_DYN(RTR0MEMOBJLNX, apPages[cPages]), RTR0MEMOBJTYPE_LOCK, (void *)R3Ptr, cb); 1059 1059 if (!pMemLnx) 1060 1060 { … … 1221 1221 * Allocate the memory object. 1222 1222 */ 1223 pMemLnx = (PRTR0MEMOBJLNX)rtR0MemObjNew(RT_ OFFSETOF(RTR0MEMOBJLNX, apPages[cPages]), RTR0MEMOBJTYPE_LOCK, pv, cb);1223 pMemLnx = (PRTR0MEMOBJLNX)rtR0MemObjNew(RT_UOFFSETOF_DYN(RTR0MEMOBJLNX, apPages[cPages]), RTR0MEMOBJTYPE_LOCK, pv, cb); 1224 1224 if (!pMemLnx) 1225 1225 { -
trunk/src/VBox/Runtime/r0drv/linux/timer-r0drv-linux.c
r70458 r73097 462 462 * Finally, free the resources. 463 463 */ 464 RTMemFreeEx(pTimer, RT_ OFFSETOF(RTTIMER, aSubTimers[pTimer->cCpus]));464 RTMemFreeEx(pTimer, RT_UOFFSETOF_DYN(RTTIMER, aSubTimers[pTimer->cCpus])); 465 465 if (hSpinlock != NIL_RTSPINLOCK) 466 466 RTSpinlockDestroy(hSpinlock); … … 1551 1551 #endif 1552 1552 1553 rc = RTMemAllocEx(RT_ OFFSETOF(RTTIMER, aSubTimers[cCpus]), 0,1553 rc = RTMemAllocEx(RT_UOFFSETOF_DYN(RTTIMER, aSubTimers[cCpus]), 0, 1554 1554 RTMEMALLOCEX_FLAGS_ZEROED | RTMEMALLOCEX_FLAGS_ANY_CTX_FREE, (void **)&pTimer); 1555 1555 if (RT_FAILURE(rc))
Note:
See TracChangeset
for help on using the changeset viewer.