From: Vladimir Sokolovsky Date: Mon, 3 Nov 2014 15:17:27 +0000 (+0200) Subject: compat: Fixed pcie_get_minimum_link declaration X-Git-Tag: vofed-3.18~56 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=8d9927005498e716e91ccf12cb5075362ed63b38;p=~emulex%2Ftmp%2Fcompat%2F.git compat: Fixed pcie_get_minimum_link declaration Signed-off-by: Vladimir Sokolovsky --- diff --git a/config/rdma.m4 b/config/rdma.m4 index 6a9f1bf..cd07a45 100644 --- a/config/rdma.m4 +++ b/config/rdma.m4 @@ -445,7 +445,7 @@ AC_DEFUN([LINUX_CONFIG_COMPAT], AC_MSG_CHECKING([if pci.h has enum pcie_link_width]) LB_LINUX_TRY_COMPILE([ - #include + #include ],[ enum pcie_link_width *x; diff --git a/include/linux/compat-3.12.h b/include/linux/compat-3.12.h index 6406c2c..eba4235 100644 --- a/include/linux/compat-3.12.h +++ b/include/linux/compat-3.12.h @@ -4,6 +4,7 @@ #include #if (LINUX_VERSION_CODE < KERNEL_VERSION(3,12,0)) +#include #ifndef PTR_ERR_OR_ZERO #define PTR_ERR_OR_ZERO(p) PTR_RET(p) @@ -17,6 +18,9 @@ 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); + #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(3,12,0)) */ #endif /* LINUX_3_12_COMPAT_H */