diff options
author | Randy Dunlap <randy.dunlap@oracle.com> | 2008-06-30 20:35:53 +0200 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2008-06-30 20:41:36 +0200 |
commit | 80be038593dba7aa46fb24a14f0ba83e5ade0edb (patch) | |
tree | f60e4fa321b1032b84e6f51cc9827d59d3d71cbc /include | |
parent | PCI: remove unused arch pcibios_update_resource() functions (diff) | |
download | linux-80be038593dba7aa46fb24a14f0ba83e5ade0edb.tar.xz linux-80be038593dba7aa46fb24a14f0ba83e5ade0edb.zip |
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.h | 5 |
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) return -EIO; } +static inline int pci_set_consistent_dma_mask(struct pci_dev *dev, u64 mask) +{ + return -EIO; +} + static inline int pci_set_dma_max_seg_size(struct pci_dev *dev, unsigned int size) { |