Commit 3e0b2a19 authored by Sumit Semwal's avatar Sumit Semwal

dma-buf: correct dummy function declarations.

Dummy functions for the newly added cpu access ops need variable names for
arguments.
Also, the introduction of flags in dma_buf_fd  needs to be added to dummy
functions as well.
Signed-off-by: default avatarSumit Semwal <sumit.semwal@ti.com>
Signed-off-by: default avatarSumit Semwal <sumit.semwal@linaro.org>
parent fbb231e1
...@@ -188,7 +188,7 @@ static inline struct dma_buf *dma_buf_export(void *priv, ...@@ -188,7 +188,7 @@ static inline struct dma_buf *dma_buf_export(void *priv,
return ERR_PTR(-ENODEV); return ERR_PTR(-ENODEV);
} }
static inline int dma_buf_fd(struct dma_buf *dmabuf) static inline int dma_buf_fd(struct dma_buf *dmabuf, int flags)
{ {
return -ENODEV; return -ENODEV;
} }
...@@ -215,36 +215,37 @@ static inline void dma_buf_unmap_attachment(struct dma_buf_attachment *attach, ...@@ -215,36 +215,37 @@ static inline void dma_buf_unmap_attachment(struct dma_buf_attachment *attach,
return; return;
} }
static inline int dma_buf_begin_cpu_access(struct dma_buf *, static inline int dma_buf_begin_cpu_access(struct dma_buf *dmabuf,
size_t, size_t, size_t start, size_t len,
enum dma_data_direction) enum dma_data_direction dir)
{ {
return -ENODEV; return -ENODEV;
} }
static inline void dma_buf_end_cpu_access(struct dma_buf *, static inline void dma_buf_end_cpu_access(struct dma_buf *dmabuf,
size_t, size_t, size_t start, size_t len,
enum dma_data_direction) enum dma_data_direction dir)
{ {
} }
static inline void *dma_buf_kmap_atomic(struct dma_buf *, unsigned long) static inline void *dma_buf_kmap_atomic(struct dma_buf *dmabuf,
unsigned long pnum)
{ {
return NULL; return NULL;
} }
static inline void dma_buf_kunmap_atomic(struct dma_buf *, unsigned long, static inline void dma_buf_kunmap_atomic(struct dma_buf *dmabuf,
void *) unsigned long pnum, void *vaddr)
{ {
} }
static inline void *dma_buf_kmap(struct dma_buf *, unsigned long) static inline void *dma_buf_kmap(struct dma_buf *dmabuf, unsigned long pnum)
{ {
return NULL; return NULL;
} }
static inline void dma_buf_kunmap(struct dma_buf *, unsigned long, static inline void dma_buf_kunmap(struct dma_buf *dmabuf,
void *) unsigned long pnum, void *vaddr)
{ {
} }
#endif /* CONFIG_DMA_SHARED_BUFFER */ #endif /* CONFIG_DMA_SHARED_BUFFER */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment