]> err.no Git - linux-2.6/commitdiff
PCI: add stub for pci_set_consistent_dma_mask()
authorRandy Dunlap <randy.dunlap@oracle.com>
Mon, 30 Jun 2008 18:35:53 +0000 (11:35 -0700)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Mon, 30 Jun 2008 18:41:36 +0000 (11:41 -0700)
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>
include/linux/pci.h

index 76c9a4a9615249c2b1f1f2979255188162e64817..96ebaa8d80e3a6733781caf33e2e086e3672a2e8 100644 (file)
@@ -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)
 {