From f0ace4b5cad1022ec11d9c4159f63878a308e9cd Mon Sep 17 00:00:00 2001 From: Vladimir Sokolovsky Date: Wed, 5 Nov 2014 14:46:04 +0200 Subject: [PATCH] compat-3.12.h: Added pcie_link_speed declaration Signed-off-by: Vladimir Sokolovsky --- include/linux/compat-3.12.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 */ -- 2.41.0