]> git.openfabrics.org - ~emulex/compat.git/commitdiff
compat-3.12.h: Added pcie_link_speed declaration
authorVladimir Sokolovsky <vlad@mellanox.com>
Wed, 5 Nov 2014 12:46:04 +0000 (14:46 +0200)
committerVladimir Sokolovsky <vlad@mellanox.com>
Wed, 5 Nov 2014 12:46:04 +0000 (14:46 +0200)
Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
include/linux/compat-3.12.h

index cf4e55d14709ad987bd94c44b5d4945ec6191244..c2ef07bce2ab0ba29f102064efdca6c198def240 100644 (file)
@@ -18,9 +18,6 @@ static inline struct inode *file_inode(struct file *f)
        return f->f_dentry->d_inode;
 }
 
-int pcie_get_minimum_link(struct pci_dev *dev, enum pci_bus_speed *speed,
-               enum pcie_link_width *width);
-
 #ifndef HAVE_PCIE_LINK_WIDTH
 /* These values come from the PCI Express Spec */
 enum pcie_link_width {
@@ -36,6 +33,10 @@ enum pcie_link_width {
 };
 #endif
 
-#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(3,12,0)) */
+extern const unsigned char pcie_link_speed[];
 
+#define pcie_get_minimum_link LINUX_BACKPORT(pcie_get_minimum_link)
+int pcie_get_minimum_link(struct pci_dev *dev, enum pci_bus_speed *speed,
+               enum pcie_link_width *width);
+#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(3,12,0)) */
 #endif /* LINUX_3_12_COMPAT_H */