Patch from Andy Fiddaman Following the integration of '9641 want stack-clash mitigation', as_map() now expects callback functions to be: typedef int (*segcreate_func_t)(struct seg **, void *); --- VirtualBox-7.0.18/src/VBox/Runtime/r0drv/solaris/memobj-r0drv-solaris.h.orig +++ VirtualBox-7.0.18/src/VBox/Runtime/r0drv/solaris/memobj-r0drv-solaris.h @@ -68,8 +68,9 @@ static vnode_t s_segVBoxVnode; -DECLINLINE(int) rtR0SegVBoxSolCreate(seg_t *pSeg, void *pvArgs) +DECLINLINE(int) rtR0SegVBoxSolCreate(seg_t **ppSeg, void *pvArgs) { + seg_t *pSeg = *ppSeg; struct as *pAddrSpace = pSeg->s_as; PSEGVBOX_CRARGS pArgs = pvArgs; PSEGVBOX_DATA pData = kmem_zalloc(sizeof(*pData), KM_SLEEP);