VirtualBox

Changeset 62618 in vbox for trunk/src


Ignore:
Timestamp:
Jul 28, 2016 11:23:36 AM (8 years ago)
Author:
vboxsync
Message:

Devices: unused parameter warnings.

Location:
trunk/src/VBox/Devices
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA.cpp

    r62514 r62618  
    14861486{
    14871487    PVGASTATE   pThis = PDMINS_2_DATA(pDevIns, PVGASTATE);
    1488     int rc = VINF_SUCCESS;
     1488    RT_NOREF_PV(pvUser);
    14891489
    14901490    /* Ignore non-dword accesses. */
     
    15151515        break;
    15161516    }
    1517     return rc;
     1517
     1518    return VINF_SUCCESS;
    15181519}
    15191520
     
    15321533{
    15331534    PVGASTATE   pThis = PDMINS_2_DATA(pDevIns, PVGASTATE);
    1534     int rc = VINF_SUCCESS;
     1535    RT_NOREF_PV(pvUser);
    15351536
    15361537    /* Ignore non-dword accesses. */
     
    15651566        break;
    15661567    }
    1567     return rc;
     1568    return VINF_SUCCESS;
    15681569}
    15691570
  • trunk/src/VBox/Devices/Network/DevE1000Phy.cpp

    r62511 r62618  
    174174static void Phy::regWriteForbidden(PPHY pPhy, uint32_t index, uint16_t u16Value)
    175175{
     176    RT_NOREF_PV(pPhy); RT_NOREF_PV(index); RT_NOREF_PV(u16Value);
    176177    PhyLog(("PHY#%d At %02d write attempted to read-only '%s'\n",
    177178            pPhy->iInstance, s_regMap[index].u32Address, s_regMap[index].pszName));
     
    189190static uint16_t Phy::regReadUnimplemented(PPHY pPhy, uint32_t index)
    190191{
     192    RT_NOREF_PV(pPhy); RT_NOREF_PV(index);
    191193    PhyLog(("PHY#%d At %02d read attempted from unimplemented '%s'\n",
    192194            pPhy->iInstance, s_regMap[index].u32Address, s_regMap[index].pszName));
     
    204206static void Phy::regWriteUnimplemented(PPHY pPhy, uint32_t index, uint16_t u16Value)
    205207{
     208    RT_NOREF_PV(pPhy); RT_NOREF_PV(index); RT_NOREF_PV(u16Value);
    206209    PhyLog(("PHY#%d At %02d write attempted to unimplemented '%s'\n",
    207210            pPhy->iInstance, s_regMap[index].u32Address, s_regMap[index].pszName));
     
    441444static uint16_t Phy::regReadPSTATUS(PPHY pPhy, uint32_t index)
    442445{
     446    RT_NOREF_PV(pPhy); RT_NOREF_PV(index);
     447
    443448    /* Read latched value */
    444449    uint16_t u16 = REG(PSTATUS);
     
    459464static uint16_t Phy::regReadGSTATUS(PPHY pPhy, uint32_t index)
    460465{
     466    RT_NOREF_PV(pPhy); RT_NOREF_PV(index);
     467
    461468    /*
    462469     * - Link partner is capable of 1000BASE-T half duplex
  • trunk/src/VBox/Devices/Network/DevVirtioNet.cpp

    r62511 r62618  
    292292DECLINLINE(int) vnetCsRxEnter(PVNETSTATE pThis, int rcBusy)
    293293{
     294    RT_NOREF_PV(pThis);
     295    RT_NOREF_PV(rcBusy);
    294296    // STAM_PROFILE_START(&pThis->CTXSUFF(StatCsRx), a);
    295297    // int rc = PDMCritSectEnter(&pThis->csRx, rcBusy);
     
    301303DECLINLINE(void) vnetCsRxLeave(PVNETSTATE pThis)
    302304{
     305    RT_NOREF_PV(pThis);
    303306    // PDMCritSectLeave(&pThis->csRx);
    304307}
     
    367370static DECLCALLBACK(uint32_t) vnetIoCb_GetHostFeatures(void *pvState)
    368371{
     372    RT_NOREF_PV(pvState);
     373
    369374    /* We support:
    370375     * - Host-provided MAC address
     
    398403static DECLCALLBACK(uint32_t) vnetIoCb_GetHostMinimalFeatures(void *pvState)
    399404{
     405    RT_NOREF_PV(pvState);
    400406    return VNET_F_MAC;
    401407}
  • trunk/src/VBox/Devices/Parallel/DrvHostParallel.cpp

    r62510 r62618  
    172172/**
    173173 * R0 mode function to write byte value to data port.
     174 *
    174175 * @returns VBox status code.
    175176 * @param   pDrvIns    Driver instance.
     
    186187
    187188/**
    188  * R0 mode function to write byte value to parallel port control
    189  * register.
     189 * R0 mode function to write byte value to parallel port control register.
     190 *
    190191 * @returns VBox status code.
    191192 * @param   pDrvIns     Driver instance.
     
    201202
    202203/**
    203  * R0 mode function to ready byte value from the parallel port
    204  * data register
     204 * R0 mode function to ready byte value from the parallel port data register.
     205 *
    205206 * @returns VBox status code.
    206207 * @param   pDrvIns    Driver instance.
    207  * @param   u64Arg     Not used.
    208  */
    209 static int drvR0HostParallelReqRead(PPDMDRVINS pDrvIns, uint64_t u64Arg)
    210 {
    211     uint8_t u8Data;
     208 */
     209static int drvR0HostParallelReqRead(PPDMDRVINS pDrvIns)
     210{
    212211    PDRVHOSTPARALLEL pThis = PDMINS_2_DATA(pDrvIns, PDRVHOSTPARALLEL);
    213     u8Data = ASMInU8(pThis->u32LptAddr);
     212    uint8_t u8Data = ASMInU8(pThis->u32LptAddr);
    214213    LogFlowFunc(("read from data port=%#x val=%#x\n", pThis->u32LptAddr, u8Data));
    215214    pThis->u8ReadIn = u8Data;
     
    218217
    219218/**
    220  * R0 mode function to ready byte value from the parallel port
    221  * control register.
     219 * R0 mode function to ready byte value from the parallel port control register.
     220 *
    222221 * @returns VBox status code.
    223222 * @param   pDrvIns    Driver instance.
    224  * @param   u64Arg     Not used.
    225  */
    226 static int drvR0HostParallelReqReadControl(PPDMDRVINS pDrvIns, uint64_t u64Arg)
    227 {
    228     uint8_t u8Data;
     223 */
     224static int drvR0HostParallelReqReadControl(PPDMDRVINS pDrvIns)
     225{
    229226    PDRVHOSTPARALLEL pThis = PDMINS_2_DATA(pDrvIns, PDRVHOSTPARALLEL);
    230     u8Data = ASMInU8(pThis->u32LptAddrControl);
     227    uint8_t u8Data = ASMInU8(pThis->u32LptAddrControl);
    231228    LogFlowFunc(("read from ctrl port=%#x val=%#x\n", pThis->u32LptAddr, u8Data));
    232229    pThis->u8ReadInControl = u8Data;
     
    235232
    236233/**
    237  * R0 mode function to ready byte value from the parallel port
    238  * status register.
     234 * R0 mode function to ready byte value from the parallel port status register.
     235 *
    239236 * @returns VBox status code.
    240237 * @param   pDrvIns    Driver instance.
    241  * @param   u64Arg     Not used.
    242  */
    243 static int drvR0HostParallelReqReadStatus(PPDMDRVINS pDrvIns, uint64_t u64Arg)
    244 {
    245     uint8_t u8Data;
     238 */
     239static int drvR0HostParallelReqReadStatus(PPDMDRVINS pDrvIns)
     240{
    246241    PDRVHOSTPARALLEL pThis = PDMINS_2_DATA(pDrvIns, PDRVHOSTPARALLEL);
    247     u8Data = ASMInU8(pThis->u32LptAddrStatus);
     242    uint8_t u8Data = ASMInU8(pThis->u32LptAddrStatus);
    248243    LogFlowFunc(("read from status port=%#x val=%#x\n", pThis->u32LptAddr, u8Data));
    249244    pThis->u8ReadInStatus = u8Data;
     
    254249 * R0 mode function to set the direction of parallel port -
    255250 * operate in bidirectional mode or single direction.
     251 *
    256252 * @returns VBox status code.
    257253 * @param   pDrvIns    Driver instance.
     
    291287    {
    292288        case DRVHOSTPARALLELR0OP_READ:
    293             rc = drvR0HostParallelReqRead(pDrvIns, u64Arg);
     289            rc = drvR0HostParallelReqRead(pDrvIns);
    294290            break;
    295291        case DRVHOSTPARALLELR0OP_READSTATUS:
    296             rc = drvR0HostParallelReqReadStatus(pDrvIns, u64Arg);
     292            rc = drvR0HostParallelReqReadStatus(pDrvIns);
    297293            break;
    298294        case DRVHOSTPARALLELR0OP_READCONTROL:
    299             rc = drvR0HostParallelReqReadControl(pDrvIns, u64Arg);
     295            rc = drvR0HostParallelReqReadControl(pDrvIns);
    300296            break;
    301297        case DRVHOSTPARALLELR0OP_WRITE:
  • trunk/src/VBox/Devices/Storage/DevBusLogic.cpp

    r62506 r62618  
    24082408PDMBOTHCBDECL(int) buslogicMMIORead(PPDMDEVINS pDevIns, void *pvUser, RTGCPHYS GCPhysAddr, void *pv, unsigned cb)
    24092409{
     2410    RT_NOREF_PV(pDevIns); RT_NOREF_PV(pvUser); RT_NOREF_PV(GCPhysAddr); RT_NOREF_PV(pv); RT_NOREF_PV(cb);
     2411
    24102412    /* the linux driver does not make use of the MMIO area. */
    24112413    AssertMsgFailed(("MMIO Read\n"));
     
    24262428PDMBOTHCBDECL(int) buslogicMMIOWrite(PPDMDEVINS pDevIns, void *pvUser, RTGCPHYS GCPhysAddr, void const *pv, unsigned cb)
    24272429{
     2430    RT_NOREF_PV(pDevIns); RT_NOREF_PV(pvUser); RT_NOREF_PV(GCPhysAddr); RT_NOREF_PV(pv); RT_NOREF_PV(cb);
     2431
    24282432    /* the linux driver does not make use of the MMIO area. */
    24292433    AssertMsgFailed(("MMIO Write\n"));
     
    24462450    PBUSLOGIC pBusLogic = PDMINS_2_DATA(pDevIns, PBUSLOGIC);
    24472451    unsigned iRegister = Port % 4;
     2452    RT_NOREF_PV(pvUser); RT_NOREF_PV(cb);
    24482453
    24492454    Assert(cb == 1);
  • trunk/src/VBox/Devices/Storage/DevLsiLogicSCSI.cpp

    r62506 r62618  
    16881688    uint32_t        offReg = Port - pThis->IOPortBase;
    16891689    int             rc;
     1690    RT_NOREF_PV(pvUser);
    16901691
    16911692    if (!(offReg & 3))
     
    17111712    PLSILOGICSCSI   pThis   = PDMINS_2_DATA(pDevIns, PLSILOGICSCSI);
    17121713    uint32_t        offReg  = Port - pThis->IOPortBase;
     1714    RT_NOREF_PV(pvUser);
     1715    RT_NOREF_PV(cb);
    17131716
    17141717    int rc = lsilogicRegisterRead(pThis, offReg & ~(uint32_t)3, pu32);
     
    17281731    uint32_t        u32;
    17291732    int             rc;
     1733    RT_NOREF_PV(pvUser);
    17301734
    17311735    /* See comments in lsilogicR3Map regarding size and alignment. */
     
    17611765    uint32_t        offReg = GCPhysAddr - pThis->GCPhysMMIOBase;
    17621766    Assert(!(offReg & 3)); Assert(cb == 4);
     1767    RT_NOREF_PV(pvUser);
    17631768
    17641769    return lsilogicRegisterRead(pThis, offReg, (uint32_t *)pv);
     
    17731778#endif
    17741779
     1780    RT_NOREF_PV(pDevIns); RT_NOREF_PV(pvUser); RT_NOREF_PV(GCPhysAddr); RT_NOREF_PV(pv); RT_NOREF_PV(cb);
    17751781    return VINF_SUCCESS;
    17761782}
     
    17841790#endif
    17851791
     1792    RT_NOREF_PV(pDevIns); RT_NOREF_PV(pvUser); RT_NOREF_PV(GCPhysAddr); RT_NOREF_PV(pv); RT_NOREF_PV(cb);
    17861793    return VINF_SUCCESS;
    17871794}
  • trunk/src/VBox/Devices/VirtIO/Virtio.cpp

    r62504 r62618  
    272272int vpciRaiseInterrupt(VPCISTATE *pState, int rcBusy, uint8_t u8IntCause)
    273273{
     274    RT_NOREF_PV(rcBusy);
    274275    // int rc = vpciCsEnter(pState, rcBusy);
    275276    // if (RT_UNLIKELY(rc != VINF_SUCCESS))
     
    327328    int         rc     = VINF_SUCCESS;
    328329    STAM_PROFILE_ADV_START(&pState->CTXSUFF(StatIORead), a);
     330    RT_NOREF_PV(pvUser);
    329331
    330332    /*
     
    425427    bool        fHasBecomeReady;
    426428    STAM_PROFILE_ADV_START(&pState->CTXSUFF(StatIOWrite), a);
     429    RT_NOREF_PV(pvUser);
    427430
    428431    Port -= pState->IOPortBase;
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