Commit 80be038593dba7aa46fb24a14f0ba83e5ade0edb

Authored by Randy Dunlap
Committed by Jesse Barnes
1 parent 0aea531326

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>

Showing 1 changed file with 5 additions and 0 deletions Side-by-side Diff

... ... @@ -853,6 +853,11 @@
853 853 return -EIO;
854 854 }
855 855  
  856 +static inline int pci_set_consistent_dma_mask(struct pci_dev *dev, u64 mask)
  857 +{
  858 + return -EIO;
  859 +}
  860 +
856 861 static inline int pci_set_dma_max_seg_size(struct pci_dev *dev,
857 862 unsigned int size)
858 863 {