public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] PCI: add stub for pci_set_consistent_dma_mask()
@ 2008-06-30 18:35 Randy Dunlap
  2008-06-30 18:42 ` Jesse Barnes
  0 siblings, 1 reply; 7+ messages in thread
From: Randy Dunlap @ 2008-06-30 18:35 UTC (permalink / raw)
  To: linux-pci, lkml; +Cc: mb, jbarnes, jejb, akpm

From: Randy Dunlap <randy.dunlap@oracle.com>

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>
---
 include/linux/pci.h |    5 +++++
 1 file changed, 5 insertions(+)

--- linux-next-20080630.orig/include/linux/pci.h
+++ linux-next-20080630/include/linux/pci.h
@@ -854,6 +854,11 @@ static inline int pci_set_dma_mask(struc
 	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)
 {


---
~Randy
Linux Plumbers Conference, 17-19 September 2008, Portland, Oregon USA
http://linuxplumbersconf.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-07-02  4:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-30 18:35 [PATCH] PCI: add stub for pci_set_consistent_dma_mask() Randy Dunlap
2008-06-30 18:42 ` Jesse Barnes
2008-06-30 20:40   ` Michael Buesch
2008-06-30 21:00     ` Jesse Barnes
2008-06-30 21:10       ` Michael Buesch
2008-06-30 21:12       ` Michael Buesch
2008-07-02  4:31       ` Grant Grundler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox