From 8d9927005498e716e91ccf12cb5075362ed63b38 Mon Sep 17 00:00:00 2001 From: Vladimir Sokolovsky Date: Mon, 3 Nov 2014 17:17:27 +0200 Subject: [PATCH] compat: Fixed pcie_get_minimum_link declaration Signed-off-by: Vladimir Sokolovsky --- config/rdma.m4 | 2 +- include/linux/compat-3.12.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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 */ -- 2.41.0