Skip to content

Commit

Permalink
PCI: add stub for pci_set_consistent_dma_mask()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Randy Dunlap authored and Jesse Barnes committed Jun 30, 2008
1 parent 0aea531 commit 80be038
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/linux/pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 80be038

Please sign in to comment.