aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRandy Dunlap <randy.dunlap@oracle.com>2008-06-30 14:35:53 -0400
committerJesse Barnes <jbarnes@virtuousgeek.org>2008-06-30 14:41:36 -0400
commit80be038593dba7aa46fb24a14f0ba83e5ade0edb (patch)
treef60e4fa321b1032b84e6f51cc9827d59d3d71cbc /include
parent0aea531326d1a17ccef7d9a538429c5b32cf4f12 (diff)
PCI: add stub for pci_set_consistent_dma_mask()
When CONFIG_PCI=n, there is no stub for pci_set_consistent_dma_mask(), so add one like other similar stubs. Otherwise there can be build errors, as here: linux-next-20080630/drivers/ssb/main.c:1175: error: implicit declaration of function 'pci_set_consistent_dma_mask' Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/pci.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h
index 76c9a4a96152..96ebaa8d80e3 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -853,6 +853,11 @@ static inline int pci_set_dma_mask(struct pci_dev *dev, u64 mask)
853 return -EIO; 853 return -EIO;
854} 854}
855 855
856static inline int pci_set_consistent_dma_mask(struct pci_dev *dev, u64 mask)
857{
858 return -EIO;
859}
860
856static inline int pci_set_dma_max_seg_size(struct pci_dev *dev, 861static inline int pci_set_dma_max_seg_size(struct pci_dev *dev,
857 unsigned int size) 862 unsigned int size)
858{ 863{