VirtualBox

Changeset 78135 in vbox for trunk


Ignore:
Timestamp:
Apr 16, 2019 1:18:25 AM (6 years ago)
Author:
vboxsync
Message:

linux/vboxsf: Various build fixes for older kernels. bugref:9172

Location:
trunk/src/VBox/Additions/linux/sharedfolders
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/sharedfolders/Makefile.module

    r77504 r78135  
    6464VBOXMOD_DEFS += VBOX_WITH_64_BITS_GUESTS
    6565endif
     66ifneq ($(filter %uek.x86_64,$(KERN_VER)),)
     67VBOXMOD_DEFS += VBOX_UEK
     68endif
    6669VBOXMOD_CFLAGS := $(call VBOX_GCC_CHECK_CC,-Wno-declaration-after-statement,-Wno-declaration-after-statement,,)
    6770VBOXMOD_CFLAGS += $(call VBOX_GCC_CHECK_CC,-fno-pie,-fno-pie,,)
  • trunk/src/VBox/Additions/linux/sharedfolders/dirops.c

    r78134 r78135  
    13691369struct inode_operations vbsf_dir_iops = {
    13701370    .lookup         = vbsf_inode_lookup,
    1371 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 6, 0)
     1371#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 16, 0)
    13721372    .atomic_open    = vbsf_inode_atomic_open,
    13731373#endif
  • trunk/src/VBox/Additions/linux/sharedfolders/regops.c

    r77976 r78135  
    14161416# elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6, 0)
    14171417    ssize_t cPagesLocked = get_user_pages_unlocked(uPtrFrom, cPages, fWrite, 1 /*force*/, papPages);
     1418# elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 168) && LINUX_VERSION_CODE < KERNEL_VERSION(4, 5, 0)
     1419    ssize_t cPagesLocked = get_user_pages_unlocked(current, current->mm, uPtrFrom, cPages, papPages,
     1420                                                   fWrite ? FOLL_WRITE | FOLL_FORCE : FOLL_FORCE);
    14181421# elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 0, 0)
    14191422    ssize_t cPagesLocked = get_user_pages_unlocked(current, current->mm, uPtrFrom, cPages, fWrite, 1 /*force*/, papPages);
     
    36983701
    36993702#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 4, 10)
     3703
     3704# ifdef VBOX_UEK
     3705#  undef iov_iter /* HACK ALERT! Don't put anything needing vbsf_iov_iter after this fun! */
     3706# endif
     3707
    37003708/**
    37013709 * This is needed to make open accept O_DIRECT as well as dealing with direct
     
    37063714# elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 1, 0)
    37073715static ssize_t vbsf_direct_IO(struct kiocb *iocb, struct iov_iter *iter, loff_t offset)
    3708 # elif LINUX_VERSION_CODE >= KERNEL_VERSION(3, 16, 0)
     3716# elif LINUX_VERSION_CODE >= KERNEL_VERSION(3, 16, 0) || defined(VBOX_UEK)
    37093717static ssize_t vbsf_direct_IO(int rw, struct kiocb *iocb, struct iov_iter *iter, loff_t offset)
    37103718# elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 6)
     
    37273735    return -EINVAL;
    37283736}
     3737
    37293738#endif
    37303739
  • trunk/src/VBox/Additions/linux/sharedfolders/vfsmod.h

    r77961 r78135  
    9999#endif /* < 2.6.0 */
    100100
    101 #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 2, 0)
     101#if  LINUX_VERSION_CODE < KERNEL_VERSION(3, 2, 0) \
     102  && (!defined(RHEL_MAJOR) || RHEL_MAJOR != 6)
    102103DECLINLINE(void) set_nlink(struct inode *pInode, unsigned int cLinks)
    103104{
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