[PATCH] dma-buf: fix disabled vmap function

Dave Airlie airlied at gmail.com
Fri May 25 02:04:17 PDT 2012


From: Dave Airlie <airlied at redhat.com>

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]

Reported-by: wfg at linux.intel.com
Signed-off-by: Dave Airlie <airlied at redhat.com>
---
 include/linux/dma-buf.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/include/linux/dma-buf.h b/include/linux/dma-buf.h
index d8c2865..506bb7b 100644
--- a/include/linux/dma-buf.h
+++ b/include/linux/dma-buf.h
@@ -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)
-- 
1.7.6



More information about the dri-devel mailing list