Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 970a9e73 authored by Al Viro's avatar Al Viro Committed by Linus Torvalds
Browse files

[PATCH] gfp_t: dma-mapping (simple cases)

parent 5fb5cbed
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@

static inline void *
dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle,
		   int flag)
		   gfp_t flag)
{
	BUG();
	return NULL;
+1 −1
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@

static inline void *
dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle,
		   int flag)
		   gfp_t flag)
{
	return (void *)NULL;
}
+1 −1
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@ static inline int dma_set_mask(struct device *dev, u64 mask)
}

static inline void *dma_alloc_coherent(struct device *dev, size_t size,
			 dma_addr_t *dma_handle, int flag)
			 dma_addr_t *dma_handle, gfp_t flag)
{
	return consistent_alloc(NULL, size, dma_handle);
}
+1 −1
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@
#else

static inline void *dma_alloc_coherent(struct device *dev, size_t size,
			 dma_addr_t *dma_handle, int flag)
			 dma_addr_t *dma_handle, gfp_t flag)
{
	BUG();
	return NULL;
+1 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@
struct device;

static inline void *dma_alloc_coherent(struct device *dev, size_t size,
			 dma_addr_t *dma_handle, int flag)
			 dma_addr_t *dma_handle, gfp_t flag)
{
	BUG();
	return NULL;
Loading