[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20080630113553.c133307f.randy.dunlap@oracle.com>
Date: Mon, 30 Jun 2008 11:35:53 -0700
From: Randy Dunlap <randy.dunlap@...cle.com>
To: linux-pci@...r.kernel.org, lkml <linux-kernel@...r.kernel.org>
Cc: mb@...sch.de, jbarnes@...tuousgeek.org,
jejb <James.Bottomley@...senPartnership.com>,
akpm <akpm@...ux-foundation.org>
Subject: [PATCH] PCI: add stub for pci_set_consistent_dma_mask()
From: Randy Dunlap <randy.dunlap@...cle.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@...cle.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/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists