Changeset 39224 in vbox
- Timestamp:
- Nov 8, 2011 9:23:51 AM (13 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/sharedfolders/utils.c
r38925 r39224 111 111 /* XXX: this probably should be set to the number of entries 112 112 in the directory plus two (. ..) */ 113 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 2, 0) 114 set_nlink(inode, 1); 115 #else 113 116 inode->i_nlink = 1; 117 #endif 114 118 } 115 119 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0) … … 120 124 inode->i_mode |= S_IFLNK; 121 125 inode->i_op = &sf_lnk_iops; 126 # if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 2, 0) 127 set_nlink(inode, 1); 128 # else 122 129 inode->i_nlink = 1; 130 # endif 123 131 } 124 132 #endif … … 130 138 inode->i_op = &sf_reg_iops; 131 139 inode->i_fop = &sf_reg_fops; 140 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 2, 0) 141 set_nlink(inode, 1); 142 #else 132 143 inode->i_nlink = 1; 144 #endif 133 145 } 134 146 -
trunk/src/VBox/HostDrivers/VBoxPci/linux/VBoxPci-linux.c
r38299 r39224 34 34 35 35 #ifdef VBOX_WITH_IOMMU 36 #include <linux/dmar.h> 37 #include <linux/intel-iommu.h> 38 #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 1, 0) 39 # include <asm/amd_iommu.h> 40 #else 41 # include <linux/amd-iommu.h> 42 #endif 43 #endif 36 # include <linux/dmar.h> 37 # include <linux/intel-iommu.h> 38 # include <linux/pci.h> 39 # if LINUX_VERSION_CODE < KERNEL_VERSION(3, 1, 0) 40 # include <asm/amd_iommu.h> 41 # else 42 # include <linux/amd-iommu.h> 43 # endif 44 # if LINUX_VERSION_CODE < KERNEL_VERSION(3, 2, 0) 45 # define IOMMU_PRESENT() iommu_found() 46 # define IOMMU_DOMAIN_ALLOC() iommu_domain_alloc() 47 # else 48 # define IOMMU_PRESENT() iommu_present(&pci_bus_type) 49 # define IOMMU_DOMAIN_ALLOC() iommu_domain_alloc(&pci_bus_type) 50 # endif 51 #endif /* VBOX_WITH_IOMMU */ 44 52 45 53 … … 147 155 148 156 #ifdef VBOX_WITH_IOMMU 149 if ( iommu_found())157 if (IOMMU_PRESENT()) 150 158 printk(KERN_INFO "vboxpci: IOMMU found\n"); 151 159 else … … 985 993 #endif 986 994 #ifdef VBOX_WITH_IOMMU 987 if ( iommu_found())988 { 989 pThis->pIommuDomain = iommu_domain_alloc();995 if (IOMMU_PRESENT()) 996 { 997 pThis->pIommuDomain = IOMMU_DOMAIN_ALLOC(); 990 998 if (!pThis->pIommuDomain) 991 999 {
Note:
See TracChangeset
for help on using the changeset viewer.