From: Randy Dunlap Date: Mon, 30 Jun 2008 18:35:53 +0000 (-0700) Subject: PCI: add stub for pci_set_consistent_dma_mask() X-Git-Tag: v2.6.27-rc1~1046^2~17 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80be038593dba7aa46fb24a14f0ba83e5ade0edb;p=linux-2.6 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 Signed-off-by: Jesse Barnes --- diff --git a/include/linux/pci.h b/include/linux/pci.h index 76c9a4a961..96ebaa8d80 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) {