提交 970a9e73 编写于 作者: A Al Viro 提交者: Linus Torvalds

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

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 5fb5cbed
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
static inline void * static inline void *
dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle, dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle,
int flag) gfp_t flag)
{ {
BUG(); BUG();
return NULL; return NULL;
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
static inline void * static inline void *
dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle, dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle,
int flag) gfp_t flag)
{ {
return (void *)NULL; return (void *)NULL;
} }
......
...@@ -25,7 +25,7 @@ static inline int dma_set_mask(struct device *dev, u64 mask) ...@@ -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, 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); return consistent_alloc(NULL, size, dma_handle);
} }
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
#else #else
static inline void *dma_alloc_coherent(struct device *dev, size_t size, 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(); BUG();
return NULL; return NULL;
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
struct device; struct device;
static inline void *dma_alloc_coherent(struct device *dev, size_t size, 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(); BUG();
return NULL; return NULL;
......
...@@ -19,7 +19,7 @@ dma_set_mask(struct device *dev, u64 dma_mask) ...@@ -19,7 +19,7 @@ dma_set_mask(struct device *dev, u64 dma_mask)
static inline void * static inline void *
dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle, dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle,
int flag) gfp_t flag)
{ {
BUG(); BUG();
return((void *) 0); return((void *) 0);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册