From: Vladimir Sokolovsky Date: Wed, 5 Nov 2014 12:46:04 +0000 (+0200) Subject: compat-3.12.h: Added pcie_link_speed declaration X-Git-Tag: vofed-3.18~52 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=f0ace4b5cad1022ec11d9c4159f63878a308e9cd;p=~emulex%2Ftmp%2Fcompat%2F.git compat-3.12.h: Added pcie_link_speed declaration Signed-off-by: Vladimir Sokolovsky --- diff --git a/include/linux/compat-3.12.h b/include/linux/compat-3.12.h index cf4e55d..c2ef07b 100644 --- a/include/linux/compat-3.12.h +++ b/include/linux/compat-3.12.h @@ -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 */