aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/dma-buf.h
diff options
context:
space:
mode:
authorSumit Semwal <sumit.semwal@ti.com>2012-03-26 01:59:19 -0400
committerSumit Semwal <sumit.semwal@ti.com>2012-03-26 02:03:34 -0400
commit3e0b2a1993c06e646d90d71e163d03869a211a4c (patch)
tree40b950985b5559159f0c9a1dbd5f28a43c51fa77 /include/linux/dma-buf.h
parentfbb231e1a98cb0360b681b6a6195a619e98d7077 (diff)
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: Sumit Semwal <sumit.semwal@ti.com> Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
Diffstat (limited to 'include/linux/dma-buf.h')
-rw-r--r--include/linux/dma-buf.h27
1 files changed, 14 insertions, 13 deletions
diff --git a/include/linux/dma-buf.h b/include/linux/dma-buf.h
index ee7ef9990d9a..f141745a13bf 100644
--- a/include/linux/dma-buf.h
+++ b/include/linux/dma-buf.h
@@ -188,7 +188,7 @@ static inline struct dma_buf *dma_buf_export(void *priv,
188 return ERR_PTR(-ENODEV); 188 return ERR_PTR(-ENODEV);
189} 189}
190 190
191static inline int dma_buf_fd(struct dma_buf *dmabuf) 191static inline int dma_buf_fd(struct dma_buf *dmabuf, int flags)
192{ 192{
193 return -ENODEV; 193 return -ENODEV;
194} 194}
@@ -215,36 +215,37 @@ static inline void dma_buf_unmap_attachment(struct dma_buf_attachment *attach,
215 return; 215 return;
216} 216}
217 217
218static inline int dma_buf_begin_cpu_access(struct dma_buf *, 218static inline int dma_buf_begin_cpu_access(struct dma_buf *dmabuf,
219 size_t, size_t, 219 size_t start, size_t len,
220 enum dma_data_direction) 220 enum dma_data_direction dir)
221{ 221{
222 return -ENODEV; 222 return -ENODEV;
223} 223}
224 224
225static inline void dma_buf_end_cpu_access(struct dma_buf *, 225static inline void dma_buf_end_cpu_access(struct dma_buf *dmabuf,
226 size_t, size_t, 226 size_t start, size_t len,
227 enum dma_data_direction) 227 enum dma_data_direction dir)
228{ 228{
229} 229}
230 230
231static inline void *dma_buf_kmap_atomic(struct dma_buf *, unsigned long) 231static inline void *dma_buf_kmap_atomic(struct dma_buf *dmabuf,
232 unsigned long pnum)
232{ 233{
233 return NULL; 234 return NULL;
234} 235}
235 236
236static inline void dma_buf_kunmap_atomic(struct dma_buf *, unsigned long, 237static inline void dma_buf_kunmap_atomic(struct dma_buf *dmabuf,
237 void *) 238 unsigned long pnum, void *vaddr)
238{ 239{
239} 240}
240 241
241static inline void *dma_buf_kmap(struct dma_buf *, unsigned long) 242static inline void *dma_buf_kmap(struct dma_buf *dmabuf, unsigned long pnum)
242{ 243{
243 return NULL; 244 return NULL;
244} 245}
245 246
246static inline void dma_buf_kunmap(struct dma_buf *, unsigned long, 247static inline void dma_buf_kunmap(struct dma_buf *dmabuf,
247 void *) 248 unsigned long pnum, void *vaddr)
248{ 249{
249} 250}
250#endif /* CONFIG_DMA_SHARED_BUFFER */ 251#endif /* CONFIG_DMA_SHARED_BUFFER */