Skip to contentSkip to conversation

dma-buf: fix disabled vmap function

PATCH In review Dave Airlie 2 participants 3 messages May 25, 2012 DMA buffer sharing framework

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dma-buf: fix disabled vmap function

From: Dave Airlie <[email protected]>

include/linux/dma-buf.h: In function ‘dma_buf_vmap’:
include/linux/dma-buf.h:260:1: warning: no return statement in function returning non-void [-Wreturn-type]

---
 include/linux/dma-buf.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
include/linux/dma-buf.h +1 -0
index d8c2865..506bb7b 100644
@@ -257,6 +257,7 @@ static inline void dma_buf_kunmap(struct dma_buf *dmabuf,
 
 static inline void *dma_buf_vmap(struct dma_buf *dmabuf)
 {
+	return NULL;
 }
 
 static inline void dma_buf_vunmap(struct dma_buf *dmabuf, void *vaddr)
Signature · 6 lines
1.7.6

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
maintainer
#1 lore raw

Hi Dave,

Quoted 16 lines · Dave Airlie

From: Dave Airlie <[email protected]>

include/linux/dma-buf.h: In function ‘dma_buf_vmap’:
include/linux/dma-buf.h:260:1: warning: no return statement in function returning non-void [-Wreturn-type]

---
 include/linux/dma-buf.h |    1 +

 1 files changed, 1 insertions(+), 0 deletions(-)
include/linux/dma-buf.h +0 -0
index d8c2865..506bb7b 100644

include/linux/dma-buf.h static inline void dma_buf_kunmap(struct dma_buf *dmabuf, · line 261

Quoted 5 lines
include/linux/dma-buf.h +1 -0
@@ -257,6 +257,7 @@ static inline void dma_buf_kunmap(struct dma_buf *dmabuf,
 
  static inline void *dma_buf_vmap(struct dma_buf *dmabuf)
  {
+       return NULL;
  }

I fixed this as part of rebasing while applying your vmap patch to my for-next - so it is already in my pull request.

Best regards,
~Sumit.

Quoted 10 lines
include/linux/dma-buf.h +0 -1
  static inline void dma_buf_vunmap(struct dma_buf *dmabuf, void *vaddr)
--

1.7.6

_______________________________________________
Linaro-mm-sig mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/linaro-mm-sig

#2 lore raw
Quoted 20 lines · Sumit Semwal

Hi Dave,

Quoted 17 lines · Dave Airlie

From: Dave Airlie <[email protected]>

include/linux/dma-buf.h: In function ‘dma_buf_vmap’:
include/linux/dma-buf.h:260:1: warning: no return statement in function returning non-void [-Wreturn-type]

---
 include/linux/dma-buf.h |    1 +

 1 files changed, 1 insertions(+), 0 deletions(-)
include/linux/dma-buf.h +0 -0
index d8c2865..506bb7b 100644
@@ -257,6 +257,7 @@ static inline void dma_buf_kunmap(struct dma_buf *dmabuf,
 
Quoted 7 lines

include/linux/dma-buf.h static inline void dma_buf_kunmap(struct dma_buf *dmabuf, · line 261

Quoted 4 lines
include/linux/dma-buf.h +1 -0
  static inline void *dma_buf_vmap(struct dma_buf *dmabuf)
  {
+       return NULL;
  }

I fixed this as part of rebasing while applying your vmap patch to my for-next - so it is already in my pull request.

Ah I didn't read the full warning mail, it was giving out about Tomasz tree, he must have merged an older version.

Thanks,
Dave.