VirtualBox

Changeset 89368 in vbox for trunk


Ignore:
Timestamp:
May 28, 2021 5:36:09 PM (3 years ago)
Author:
vboxsync
Message:

Host drivers: SUPDrv-linux: prevent build failure on 5.12+ kernels, bugref:9980.

File:
1 edited

Legend:

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

    r87729 r89368  
    754754
    755755
     756# if RTLNX_VER_MAX(5,12,0)
    756757/**
    757758 * Used by native wrapper modules, forwarding to supdrvLdrRegisterWrappedModule
     
    761762                                                    const char *pszLnxModName, void **phMod)
    762763{
    763 #if RTLNX_VER_MIN(2,6,30)
     764# if RTLNX_VER_MIN(2,6,30)
    764765    /* Locate the module structure for the caller so can later reference
    765766       and dereference it to prevent unloading while it is being used.
     
    788789    }
    789790    return VERR_INTERRUPTED;
    790 #else
     791# else
    791792    printk("vboxdrv: wrapper modules are not supported on 2.6.29 and earlier. sorry.\n");
    792793    return VERR_NOT_SUPPORTED;
    793 #endif
     794# endif
    794795}
    795796EXPORT_SYMBOL(SUPDrvLinuxLdrRegisterWrappedModule);
     797#endif /* < 5.12.0 */
    796798
    797799
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