diff options
author | Eliad Peller <eliad@wizery.com> | 2014-03-03 13:34:21 +0200 |
---|---|---|
committer | Luis R. Rodriguez <mcgrof@do-not-panic.com> | 2014-04-08 18:16:20 -0700 |
commit | 611688352b51fa4f7fe246cce54b8c13c10de4de (patch) | |
tree | cc0d98f412e1f5dd5deb513b305af87194382db5 /backport/backport-include | |
parent | 93bd9ce7ba3984a1f7ca2ce95abd5daa8efcc1f8 (diff) |
backports: ifdef some pci functions
struct msix_entry entry is defined only when CONFIG_PCI
is defined, resulting in warnings like:
backport-include/linux/pci.h:256:16: warning: 'struct msix_entry' declared inside parameter list [enabled by default]
backport-include/linux/pci.h:256:16: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
wrap (also the mock function) with appropriate ifdef CONFIG_PCI.
Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Diffstat (limited to 'backport/backport-include')
-rw-r--r-- | backport/backport-include/linux/pci.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/backport/backport-include/linux/pci.h b/backport/backport-include/linux/pci.h index 9eeb09be..e438f143 100644 --- a/backport/backport-include/linux/pci.h +++ b/backport/backport-include/linux/pci.h @@ -245,6 +245,7 @@ static inline int pci_enable_msi_range(struct pci_dev *dev, int minvec, #endif #endif +#ifdef CONFIG_PCI #if LINUX_VERSION_CODE < KERNEL_VERSION(3,14,0) #define pci_enable_msix_range LINUX_BACKPORT(pci_enable_msix_range) #ifdef CONFIG_PCI_MSI @@ -256,5 +257,6 @@ static inline int pci_enable_msix_range(struct pci_dev *dev, { return -ENOSYS; } #endif #endif +#endif #endif /* _BACKPORT_LINUX_PCI_H */ |