@@ -8,6 +8,14 @@
#include <asm/cacheflush.h>
#include <asm/io.h>
+/*
+ * Dummy to make dma_mmap_attrs()/dma_get_sgtable_attrs() happy
+ */
+static inline const struct dma_map_ops *get_dma_ops(struct device *dev)
+{
+ return NULL;
+}
+
extern void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
int direction);
@@ -10,6 +10,14 @@
#include <asm/cacheflush.h>
struct scatterlist;
+/*
+ * Dummy to make dma_mmap_attrs()/dma_get_sgtable_attrs() happy
+ */
+static inline const struct dma_map_ops *get_dma_ops(struct device *dev)
+{
+ return NULL;
+}
+
void *dma_alloc_coherent(struct device *dev, size_t size,
dma_addr_t *dma_handle, gfp_t gfp);
void dma_free_coherent(struct device *dev, size_t size, void *vaddr,
@@ -17,6 +17,14 @@
#define dma_supported(d, m) 1
+/*
+ * Dummy to make dma_mmap_attrs()/dma_get_sgtable_attrs() happy
+ */
+static inline const struct dma_map_ops *get_dma_ops(struct device *dev)
+{
+ return NULL;
+}
+
static inline int dma_set_mask(struct device *dev, u64 dma_mask)
{
if (!dev->dma_mask || !dma_supported(dev, dma_mask))
@@ -10,6 +10,14 @@
#include <asm/io.h>
#include <asm/scatterlist.h>
+/*
+ * Dummy to make dma_mmap_attrs()/dma_get_sgtable_attrs() happy
+ */
+static inline const struct dma_map_ops *get_dma_ops(struct device *dev)
+{
+ return NULL;
+}
+
#define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f)
#define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h)
@@ -12,6 +12,14 @@
* following DMA API should work.
*/
+/*
+ * Dummy to make dma_mmap_attrs()/dma_get_sgtable_attrs() happy
+ */
+static inline const struct dma_map_ops *get_dma_ops(struct device *dev)
+{
+ return NULL;
+}
+
#define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f)
#define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h)
@@ -5,6 +5,14 @@
struct scatterlist;
+/*
+ * Dummy to make dma_mmap_attrs()/dma_get_sgtable_attrs() happy
+ */
+static inline const struct dma_map_ops *get_dma_ops(struct device *dev)
+{
+ return NULL;
+}
+
static inline int dma_supported(struct device *dev, u64 mask)
{
return 1;
@@ -22,6 +22,14 @@
* following DMA API should work.
*/
+/*
+ * Dummy to make dma_mmap_attrs()/dma_get_sgtable_attrs() happy
+ */
+static inline const struct dma_map_ops *get_dma_ops(struct device *dev)
+{
+ return NULL;
+}
+
extern void *dma_alloc_coherent(struct device *dev, size_t size,
dma_addr_t *dma_handle, int flag);
@@ -46,6 +46,14 @@ extern struct hppa_dma_ops pcx_dma_ops;
extern struct hppa_dma_ops *hppa_dma_ops;
+/*
+ * Dummy to make dma_mmap_attrs()/dma_get_sgtable_attrs() happy
+ */
+static inline const struct dma_map_ops *get_dma_ops(struct device *dev)
+{
+ return NULL;
+}
+
static inline void *
dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle,
gfp_t flag)
@@ -26,6 +26,14 @@ extern void *consistent_alloc(int, size_t, dma_addr_t, unsigned long);
extern void consistent_free(void*, size_t, dma_addr_t);
extern void consistent_sync(void*, size_t, int);
+/*
+ * Dummy to make dma_mmap_attrs()/dma_get_sgtable_attrs() happy
+ */
+static inline const struct dma_map_ops *get_dma_ops(struct device *dev)
+{
+ return NULL;
+}
+
#define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f)
#define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h)
Provide dummy versions of get_dma_ops(), as dma_mmap_attrs() and dma_get_sgtable_attrs() (will) need these Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> --- arch/avr32/include/asm/dma-mapping.h | 8 ++++++++ arch/blackfin/include/asm/dma-mapping.h | 8 ++++++++ arch/c6x/include/asm/dma-mapping.h | 8 ++++++++ arch/cris/include/asm/dma-mapping.h | 8 ++++++++ arch/frv/include/asm/dma-mapping.h | 8 ++++++++ arch/m68k/include/asm/dma-mapping.h | 8 ++++++++ arch/mn10300/include/asm/dma-mapping.h | 8 ++++++++ arch/parisc/include/asm/dma-mapping.h | 8 ++++++++ arch/xtensa/include/asm/dma-mapping.h | 8 ++++++++ 9 files changed, 72 insertions(+), 0 deletions(-)