diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2013-12-08 16:08:09 +0100 |
---|---|---|
committer | Luis R. Rodriguez <mcgrof@do-not-panic.com> | 2013-12-08 19:30:41 +0100 |
commit | 3f8c0a7df40f574eb20ecd79fb7fbd7b60bb66d5 (patch) | |
tree | 0c0ce9b425b38e0ca4dd1d6a976831874e4c6bdc /backport/compat/compat-3.7.c | |
parent | a9081420811be2a9c7386b4693c5cf1b93b3ae23 (diff) |
backports: add LINUX_BACKPORT infront of functions
This is needed to add support for SLES 11 SP3 support.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Diffstat (limited to 'backport/compat/compat-3.7.c')
-rw-r--r-- | backport/compat/compat-3.7.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/backport/compat/compat-3.7.c b/backport/compat/compat-3.7.c index 2d739f93..f7e7848b 100644 --- a/backport/compat/compat-3.7.c +++ b/backport/compat/compat-3.7.c @@ -47,21 +47,18 @@ static inline u16 pcie_flags_reg(struct pci_dev *dev) return reg16; } +#define pci_pcie_type LINUX_BACKPORT(pci_pcie_type) static inline int pci_pcie_type(struct pci_dev *dev) { return (pcie_flags_reg(dev) & PCI_EXP_FLAGS_TYPE) >> 4; } +#define pcie_cap_version LINUX_BACKPORT(pcie_cap_version) static inline int pcie_cap_version(struct pci_dev *dev) { return pcie_flags_reg(dev) & PCI_EXP_FLAGS_VERS; } -static inline bool pcie_cap_has_devctl(const struct pci_dev *dev) -{ - return true; -} - static inline bool pcie_cap_has_lnkctl(struct pci_dev *dev) { int type = pci_pcie_type(dev); @@ -102,7 +99,7 @@ static bool pcie_capability_reg_implemented(struct pci_dev *dev, int pos) case PCI_EXP_DEVCAP: case PCI_EXP_DEVCTL: case PCI_EXP_DEVSTA: - return pcie_cap_has_devctl(dev); + return true; case PCI_EXP_LNKCAP: case PCI_EXP_LNKCTL: case PCI_EXP_LNKSTA: |