VirtualBox

Ignore:
Timestamp:
Dec 4, 2009 10:38:46 AM (15 years ago)
Author:
vboxsync
Message:

Fix warnings.

Location:
trunk/src/VBox/HostDrivers/Support
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPDrv.c

    r25180 r25181  
    842842            if (pBundle->aMem[i].MemObj != NIL_RTR0MEMOBJ)
    843843            {
    844                 int rc;
    845844                Log2(("eType=%d pvR0=%p pvR3=%p cb=%ld\n", pBundle->aMem[i].eType, RTR0MemObjAddress(pBundle->aMem[i].MemObj),
    846845                      (void *)RTR0MemObjAddressR3(pBundle->aMem[i].MapObjR3), (long)RTR0MemObjSize(pBundle->aMem[i].MemObj)));
  • trunk/src/VBox/HostDrivers/Support/SUPR0IdcClientStubs.c

    r10258 r25181  
    8181SUPR0DECL(void *) SUPR0ObjRegister(PSUPDRVSESSION pSession, SUPDRVOBJTYPE enmType, PFNSUPDRVDESTRUCTOR pfnDestructor, void *pvUser1, void *pvUser2)
    8282{
    83     static DECLCALLBACKPTR(void *, s_pfn)(PSUPDRVSESSION pSession, SUPDRVOBJTYPE enmType, PFNSUPDRVDESTRUCTOR pfnDestructor, void *pvUser1, void *pvUser2);
    84     DECLCALLBACKPTR(void *,          pfn)(PSUPDRVSESSION pSession, SUPDRVOBJTYPE enmType, PFNSUPDRVDESTRUCTOR pfnDestructor, void *pvUser1, void *pvUser2);
     83    static DECLCALLBACKPTR(void *, s_pfn)(PSUPDRVSESSION /* pSession */, SUPDRVOBJTYPE /* enmType */, PFNSUPDRVDESTRUCTOR /* pfnDestructor */, void * /* pvUser1 */, void * /* pvUser2 */);
     84    DECLCALLBACKPTR(void *,          pfn)(PSUPDRVSESSION /* pSession */, SUPDRVOBJTYPE /* enmType */, PFNSUPDRVDESTRUCTOR /* pfnDestructor */, void * /* pvUser1 */, void * /* pvUser2 */);
    8585    pfn = s_pfn;
    8686    if (!pfn)
     
    9898SUPR0DECL(int) SUPR0ObjAddRef(void *pvObj, PSUPDRVSESSION pSession)
    9999{
    100     static DECLCALLBACKPTR(int, s_pfn)(void *pvObj, PSUPDRVSESSION pSession);
    101     DECLCALLBACKPTR(int,          pfn)(void *pvObj, PSUPDRVSESSION pSession);
     100    static DECLCALLBACKPTR(int, s_pfn)(void * /* pvObj */, PSUPDRVSESSION /* pSession */);
     101    DECLCALLBACKPTR(int,          pfn)(void * /* pvObj */, PSUPDRVSESSION /* pSession */);
    102102    pfn = s_pfn;
    103103    if (!pfn)
     
    115115SUPR0DECL(int) SUPR0ObjRelease(void *pvObj, PSUPDRVSESSION pSession)
    116116{
    117     static DECLCALLBACKPTR(int, s_pfn)(void *pvObj, PSUPDRVSESSION pSession);
    118     DECLCALLBACKPTR(int,          pfn)(void *pvObj, PSUPDRVSESSION pSession);
     117    static DECLCALLBACKPTR(int, s_pfn)(void * /* pvObj */, PSUPDRVSESSION /* pSession */);
     118    DECLCALLBACKPTR(int,          pfn)(void * /* pvObj */, PSUPDRVSESSION /* pSession */);
    119119    pfn = s_pfn;
    120120    if (!pfn)
     
    132132SUPR0DECL(int) SUPR0ObjVerifyAccess(void *pvObj, PSUPDRVSESSION pSession, const char *pszObjName)
    133133{
    134     static DECLCALLBACKPTR(int, s_pfn)(void *pvObj, PSUPDRVSESSION pSession, const char *pszObjName);
    135     DECLCALLBACKPTR(int,          pfn)(void *pvObj, PSUPDRVSESSION pSession, const char *pszObjName);
     134    static DECLCALLBACKPTR(int, s_pfn)(void * /* pvObj */, PSUPDRVSESSION /* pSession */, const char * /* pszObjName */);
     135    DECLCALLBACKPTR(int,          pfn)(void * /* pvObj */, PSUPDRVSESSION /* pSession */, const char * /* pszObjName */);
    136136    pfn = s_pfn;
    137137    if (!pfn)
  • trunk/src/VBox/HostDrivers/Support/solaris/SUPDrv-solaris.c

    r24179 r25181  
    150150static struct modlinkage g_VBoxDrvSolarisModLinkage =
    151151{
    152     MODREV_1,               /* loadable module system revision */
    153     &g_VBoxDrvSolarisModule,
    154     NULL                    /* terminate array of linkage structures */
     152    MODREV_1,                     /* loadable module system revision */
     153    {
     154        &g_VBoxDrvSolarisModule,
     155        NULL                     /* terminate array of linkage structures */
     156    }
    155157};
    156158
     
    220222            if (RT_SUCCESS(rc))
    221223            {
    222                 int rc = ddi_soft_state_init(&g_pVBoxDrvSolarisState, sizeof(vbox_devstate_t), 8);
     224                rc = ddi_soft_state_init(&g_pVBoxDrvSolarisState, sizeof(vbox_devstate_t), 8);
    223225                if (!rc)
    224226                {
     
    378380static int VBoxDrvSolarisDetach(dev_info_t *pDip, ddi_detach_cmd_t enmCmd)
    379381{
    380     int rc = VINF_SUCCESS;
    381 
    382382    LogFlow((DEVICE_NAME ":VBoxDrvSolarisDetach\n"));
    383383    switch (enmCmd)
     
    385385        case DDI_DETACH:
    386386        {
    387             int instance = ddi_get_instance(pDip);
    388387#ifndef USE_SESSION_HASH
    389388            ddi_remove_minor_node(pDip, NULL);
    390389#else
     390            int instance = ddi_get_instance(pDip);
    391391            vbox_devstate_t *pState = ddi_get_soft_state(g_pVBoxDrvSolarisState, instance);
    392392            ddi_remove_minor_node(pDip, NULL);
     
    512512
    513513    *pDev = makedevice(getmajor(*pDev), instance);
     514#endif
    514515
    515516    return VBoxSupDrvErr2SolarisErr(rc);
    516 #endif
    517517}
    518518
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