VirtualBox

Changeset 99775 in vbox for trunk/src/VBox/VMM/VMMR3


Ignore:
Timestamp:
May 12, 2023 12:21:58 PM (22 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
157370
Message:

*: Mark functions as static if not used outside of a given compilation unit. Enables the compiler to optimize inlining, reduces the symbol tables, exposes unused functions and in some rare cases exposes mismtaches between function declarations and definitions, but most importantly reduces the number of parfait reports for the extern-function-no-forward-declaration category. This should not result in any functional changes, bugref:3409

Location:
trunk/src/VBox/VMM/VMMR3
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/CPUM.cpp

    r99739 r99775  
    11841184 * @param   pszArgs     "terse", "default" or "verbose".
    11851185 */
    1186 DECLCALLBACK(void) cpumR3InfoVmxFeatures(PVM pVM, PCDBGFINFOHLP pHlp, const char *pszArgs)
     1186static DECLCALLBACK(void) cpumR3InfoVmxFeatures(PVM pVM, PCDBGFINFOHLP pHlp, const char *pszArgs)
    11871187{
    11881188    RT_NOREF(pszArgs);
  • trunk/src/VBox/VMM/VMMR3/CPUMR3CpuId.cpp

    r98827 r99775  
    39663966 * @param   pMsrs               The guest MSRs.
    39673967 */
    3968 int cpumR3LoadCpuIdInner(PVM pVM, PSSMHANDLE pSSM, uint32_t uVersion, PCPUMCPUIDLEAF paLeaves, uint32_t cLeaves, PCCPUMMSRS pMsrs)
     3968static int cpumR3LoadCpuIdInner(PVM pVM, PSSMHANDLE pSSM, uint32_t uVersion, PCPUMCPUIDLEAF paLeaves, uint32_t cLeaves, PCCPUMMSRS pMsrs)
    39693969{
    39703970    AssertMsgReturn(uVersion >= CPUM_SAVED_STATE_VERSION_VER3_2, ("%u\n", uVersion), VERR_SSM_UNSUPPORTED_DATA_UNIT_VERSION);
     
    47034703 * Get L2 cache associativity.
    47044704 */
    4705 const char *getL2CacheAss(unsigned u)
     4705static const char *getL2CacheAss(unsigned u)
    47064706{
    47074707    switch (u)
  • trunk/src/VBox/VMM/VMMR3/DBGF.cpp

    r99739 r99775  
    286286 * @thread  EMT(pVCpu)
    287287 */
    288 bool dbgfR3WaitForAttach(PVM pVM, PVMCPU pVCpu, DBGFEVENTTYPE enmEvent)
     288static bool dbgfR3WaitForAttach(PVM pVM, PVMCPU pVCpu, DBGFEVENTTYPE enmEvent)
    289289{
    290290    /*
  • trunk/src/VBox/VMM/VMMR3/DBGFR3ModInMem.cpp

    r98103 r99775  
    145145 * @param   cbBuf           Size of buffer.
    146146 */
    147 const char *dbgfR3ModNormalizeName(const char *pszName, char *pszBuf, size_t cbBuf)
     147static const char *dbgfR3ModNormalizeName(const char *pszName, char *pszBuf, size_t cbBuf)
    148148{
    149149    /*
  • trunk/src/VBox/VMM/VMMR3/DBGFR3Tracer.cpp

    r99739 r99775  
    924924 * @param   ppDbgfTracerR3          Where to store the pointer to the tracer on success.
    925925 */
    926 DECLHIDDEN(int) dbgfR3TracerCreate(PVM pVM, bool fR0Enabled, const char *pszTraceFilePath,
    927                                    uint32_t cbRingBuf, PDBGFTRACERINSR3 *ppDbgfTracerR3)
     926static int dbgfR3TracerCreate(PVM pVM, bool fR0Enabled, const char *pszTraceFilePath,
     927                              uint32_t cbRingBuf, PDBGFTRACERINSR3 *ppDbgfTracerR3)
    928928{
    929929    PDBGFTRACERINSR3 pThis = NULL;
  • trunk/src/VBox/VMM/VMMR3/PDMAsyncCompletion.cpp

    r99739 r99775  
    835835 * @param   pCfgHandle  Pointer to the CFGM tree.
    836836 */
    837 int pdmR3AsyncCompletionEpClassInit(PVM pVM, PCPDMASYNCCOMPLETIONEPCLASSOPS pEpClassOps, PCFGMNODE pCfgHandle)
     837static int pdmR3AsyncCompletionEpClassInit(PVM pVM, PCPDMASYNCCOMPLETIONEPCLASSOPS pEpClassOps, PCFGMNODE pCfgHandle)
    838838{
    839839    /* Validate input. */
  • trunk/src/VBox/VMM/VMMR3/PDMAsyncCompletionFile.cpp

    r99739 r99775  
    393393}
    394394
    395 int pdmacFileEpTaskInitiate(PPDMASYNCCOMPLETIONTASK pTask,
    396                             PPDMASYNCCOMPLETIONENDPOINT pEndpoint, RTFOFF off,
    397                             PCRTSGSEG paSegments, size_t cSegments,
    398                             size_t cbTransfer, PDMACTASKFILETRANSFER enmTransfer)
     395static int pdmacFileEpTaskInitiate(PPDMASYNCCOMPLETIONTASK pTask,
     396                                   PPDMASYNCCOMPLETIONENDPOINT pEndpoint, RTFOFF off,
     397                                   PCRTSGSEG paSegments, size_t cSegments,
     398                                   size_t cbTransfer, PDMACTASKFILETRANSFER enmTransfer)
    399399{
    400400    PPDMASYNCCOMPLETIONENDPOINTFILE pEpFile = (PPDMASYNCCOMPLETIONENDPOINTFILE)pEndpoint;
  • trunk/src/VBox/VMM/VMMR3/PDMLdr.cpp

    r98103 r99775  
    11011101 *                          case the arch dependent install dir is searched.
    11021102 */
    1103 char *pdmR3FileR0(const char *pszFile, const char *pszSearchPath)
     1103static char *pdmR3FileR0(const char *pszFile, const char *pszSearchPath)
    11041104{
    11051105    return pdmR3File(pszFile, NULL, pszSearchPath, /*fShared=*/false);
     
    11071107
    11081108
     1109#if 0 /* unused */
    11091110/**
    11101111 * Constructs the full filename for a RC image file.
     
    11191120 *                          case the arch dependent install dir is searched.
    11201121 */
    1121 char *pdmR3FileRC(const char *pszFile, const char *pszSearchPath)
     1122static char *pdmR3FileRC(const char *pszFile, const char *pszSearchPath)
    11221123{
    11231124    return pdmR3File(pszFile, NULL, pszSearchPath, /*fShared=*/false);
    11241125}
     1126#endif
    11251127
    11261128
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