VirtualBox

Changeset 93562 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Feb 3, 2022 7:17:21 AM (3 years ago)
Author:
vboxsync
Message:

Build fix, somehow forgot to merge compilation fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DevDP8390.cpp

    r93560 r93562  
    11271127    if (pThis->core.rcr.AM && ETHER_IS_MULTICAST(hdr->DstMac.au8))
    11281128    {
    1129         int             i;
     1129        unsigned        i;
    11301130        const uint8_t   *p = buf;
    11311131        unsigned        crc_frag, crc_rev;
     
    33363336 * @callback_method_impl{FNIOMIOPORTIN}
    33373337 */
    3338 PDMBOTHCBDECL(int) neIOPortRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb)
     3338static DECLCALLBACK(VBOXSTRICTRC)
     3339neIOPortRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb)
    33393340{
    33403341    PDPNICSTATE     pThis = PDMINS_2_DATA(pDevIns, PDPNICSTATE);
     
    33783379 * @callback_method_impl{FNIOMIOPORTIN}
    33793380 */
    3380 PDMBOTHCBDECL(int) wdIOPortRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb)
     3381static DECLCALLBACK(VBOXSTRICTRC)
     3382wdIOPortRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb)
    33813383{
    33823384    PDPNICSTATE     pThis = PDMINS_2_DATA(pDevIns, PDPNICSTATE);
     
    34153417 * @callback_method_impl{FNIOMIOPORTIN}
    34163418 */
    3417 PDMBOTHCBDECL(int) elIOPortRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb)
     3419static DECLCALLBACK(VBOXSTRICTRC)
     3420elIOPortRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb)
    34183421{
    34193422    PDPNICSTATE     pThis = PDMINS_2_DATA(pDevIns, PDPNICSTATE);
     
    34523455 * @callback_method_impl{FNIOMIOPORTIN}
    34533456 */
    3454 PDMBOTHCBDECL(int) dp8390CoreIOPortRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb)
     3457static DECLCALLBACK(VBOXSTRICTRC)
     3458dp8390CoreIOPortRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb)
    34553459{
    34563460    PDPNICSTATE     pThis = PDMINS_2_DATA(pDevIns, PDPNICSTATE);
     
    34923496 * @callback_method_impl{FNIOMIOPORTOUT}
    34933497 */
    3494 PDMBOTHCBDECL(int) neIOPortWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb)
     3498static DECLCALLBACK(VBOXSTRICTRC)
     3499neIOPortWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb)
    34953500{
    34963501    PDPNICSTATE     pThis = PDMINS_2_DATA(pDevIns, PDPNICSTATE);
     
    35343539 * @callback_method_impl{FNIOMIOPORTOUT}
    35353540 */
    3536 PDMBOTHCBDECL(int) wdIOPortWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb)
     3541static DECLCALLBACK(VBOXSTRICTRC)
     3542wdIOPortWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb)
    35373543{
    35383544    PDPNICSTATE     pThis = PDMINS_2_DATA(pDevIns, PDPNICSTATE);
     
    35693575 * @callback_method_impl{FNIOMIOPORTOUT}
    35703576 */
    3571 PDMBOTHCBDECL(int) elIOPortWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb)
     3577static DECLCALLBACK(VBOXSTRICTRC)
     3578elIOPortWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb)
    35723579{
    35733580    PDPNICSTATE     pThis = PDMINS_2_DATA(pDevIns, PDPNICSTATE);
     
    36043611 * @callback_method_impl{FNIOMIOPORTOUT}
    36053612 */
    3606 PDMBOTHCBDECL(int) dp8390CoreIOPortWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb)
     3613static DECLCALLBACK(VBOXSTRICTRC)
     3614dp8390CoreIOPortWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb)
    36073615{
    36083616    PDPNICSTATE     pThis = PDMINS_2_DATA(pDevIns, PDPNICSTATE);
     
    38373845
    38383846        /* Clip transfer size so it falls within local RAM. */
    3839         if ((uDmaAddr - 0x2000 + cbToXfer) > sizeof(pThis->abLocalRAM))
     3847        if ((uDmaAddr - 0x2000 + cbToXfer) > (int)sizeof(pThis->abLocalRAM))
    38403848        {
    38413849            /* Calculate how much to skip anything at the end. */
     
    39863994                    pDevIns->fR0Enabled ? "RZ" : "");
    39873995
    3988     /* In case of deadlocks, this should help identify the cause. */
    3989     PDMDevHlpCritSectEnter(pDevIns, &pThis->CritSect, VERR_INTERNAL_ERROR);
     3996    int const rcLock = PDMDevHlpCritSectEnter(pDevIns, &pThis->CritSect, VERR_INTERNAL_ERROR); /* Take it here so we know why we're hanging... */
     3997    PDM_CRITSECT_RELEASE_ASSERT_RC_DEV(pDevIns, &pThis->CritSect, rcLock);
    39903998
    39913999    pHlp->pfnPrintf(pHlp, "\nDP3890 NIC Core\n");
     
    47904798    AssertLogRelReturnVoid(iLUN == 0);
    47914799
    4792     PDMDevHlpCritSectEnter(pDevIns, &pThis->CritSect, VERR_SEM_BUSY);
     4800    int const rcLock = PDMDevHlpCritSectEnter(pDevIns, &pThis->CritSect, VERR_SEM_BUSY);
     4801    PDM_CRITSECT_RELEASE_ASSERT_RC_DEV(pDevIns, &pThis->CritSect, rcLock);
    47934802
    47944803    /*
     
    48164825    AssertLogRelReturn(iLUN == 0, VERR_PDM_NO_SUCH_LUN);
    48174826
    4818     PDMDevHlpCritSectEnter(pDevIns, &pThis->CritSect, VERR_SEM_BUSY);
     4827    int const rcLock = PDMDevHlpCritSectEnter(pDevIns, &pThis->CritSect, VERR_SEM_BUSY);
     4828    PDM_CRITSECT_RELEASE_ASSERT_RC_DEV(pDevIns, &pThis->CritSect, rcLock);
    48194829
    48204830    /*
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