diff options
author | Randy Dunlap <randy.dunlap@oracle.com> | 2008-06-30 11:35:53 -0700 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2008-06-30 11:41:36 -0700 |
commit | 80be038593dba7aa46fb24a14f0ba83e5ade0edb (patch) | |
tree | f60e4fa321b1032b84e6f51cc9827d59d3d71cbc /include/linux/pci.h | |
parent | 0aea531326d1a17ccef7d9a538429c5b32cf4f12 (diff) | |
download | linux-80be038593dba7aa46fb24a14f0ba83e5ade0edb.tar.gz linux-80be038593dba7aa46fb24a14f0ba83e5ade0edb.tar.bz2 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/linux/pci.h')
-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) { |