VirtualBox

Changeset 77730 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 15, 2019 6:31:47 PM (6 years ago)
Author:
vboxsync
Message:

IPRT/memobj-r0drv-linux.c: Use gpf_t rather than unsigned to avoid warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c

    r77727 r77730  
    6666            && LINUX_VERSION_CODE <  KERNEL_VERSION(2, 6, 11)))
    6767# define VBOX_USE_PAE_HACK
     68#endif
     69
     70/* gfp_t was introduced in 2.6.14, define it for earlier. */
     71#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 14)
     72# define gfp_t  unsigned
    6873#endif
    6974
     
    288293 */
    289294static int rtR0MemObjLinuxAllocPages(PRTR0MEMOBJLNX *ppMemLnx, RTR0MEMOBJTYPE enmType, size_t cb,
    290                                      size_t uAlignment, unsigned fFlagsLnx, bool fContiguous, int rcNoMem)
     295                                     size_t uAlignment, gfp_t fFlagsLnx, bool fContiguous, int rcNoMem)
    291296{
    292297    size_t          iPage;
     
    784789 */
    785790static int rtR0MemObjLinuxAllocPhysSub2(PPRTR0MEMOBJINTERNAL ppMem, RTR0MEMOBJTYPE enmType,
    786                                         size_t cb, size_t uAlignment, RTHCPHYS PhysHighest, unsigned fGfp)
     791                                        size_t cb, size_t uAlignment, RTHCPHYS PhysHighest, gfp_t fGfp)
    787792{
    788793    PRTR0MEMOBJLNX pMemLnx;
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