VirtualBox

Changeset 99775 in vbox for trunk/src/VBox/Devices/Storage


Ignore:
Timestamp:
May 12, 2023 12:21:58 PM (2 years 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/Devices/Storage
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DevLsiLogicSCSI.cpp

    r99739 r99775  
    34383438 * @todo Generate better SAS addresses. (Request a block from SUN probably)
    34393439 */
    3440 void lsilogicSASAddressGenerate(PSASADDRESS pSASAddress, unsigned iId)
     3440DECLINLINE(void) lsilogicSASAddressGenerate(PSASADDRESS pSASAddress, unsigned iId)
    34413441{
    34423442    pSASAddress->u8Address[0] = (0x5 << 5);
  • trunk/src/VBox/Devices/Storage/DrvRamDisk.cpp

    r99739 r99775  
    725725 * @param   rc        Status code to check.
    726726 */
    727 bool drvramdiskMediaExIoReqIsRedoSetWarning(PDRVRAMDISK pThis, int rc)
     727static bool drvramdiskMediaExIoReqIsRedoSetWarning(PDRVRAMDISK pThis, int rc)
    728728{
    729729    if (rc == VERR_NO_MEMORY)
  • trunk/src/VBox/Devices/Storage/DrvVD.cpp

    r99739 r99775  
    23312331 * @param   rc        Status code to check.
    23322332 */
    2333 bool drvvdMediaExIoReqIsRedoSetWarning(PVBOXDISK pThis, int rc)
     2333static bool drvvdMediaExIoReqIsRedoSetWarning(PVBOXDISK pThis, int rc)
    23342334{
    23352335    if (rc == VERR_DISK_FULL)
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette