[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20201217123053.2166511-1-siyanteng01@gmail.com>
Date: Thu, 17 Dec 2020 20:30:53 +0800
From: siyanteng01@...il.com
To: Sumit Semwal <sumit.semwal@...aro.org>
Cc: Benjamin Gaignard <benjamin.gaignard@...aro.org>,
Liam Mark <lmark@...eaurora.org>,
Laura Abbott <labbott@...hat.com>,
Brian Starkey <Brian.Starkey@....com>,
John Stultz <john.stultz@...aro.org>,
Christian König <christian.koenig@....com>,
linux-media@...r.kernel.org, dri-devel@...ts.freedesktop.org,
linaro-mm-sig@...ts.linaro.org, linux-kernel@...r.kernel.org,
siyanteng <siyanteng01@...il.com>
Subject: [PATCH] cma_heap: fix implicit function declaration
From: siyanteng <siyanteng01@...il.com>
When building cma_heap the following error shows up:
drivers/dma-buf/heaps/cma_heap.c:195:10: error: implicit declaration of function 'vmap'; did you mean 'kmap'? [-Werror=implicit-function-declaration]
195 | vaddr = vmap(buffer->pages, buffer->pagecount, VM_MAP, PAGE_KERNEL);
| ^~~~
| kmap
Use this include: linux-next/include/linux/vmalloc.h
Signed-off-by: siyanteng <siyanteng01@...il.com>
---
drivers/dma-buf/heaps/cma_heap.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/dma-buf/heaps/cma_heap.c b/drivers/dma-buf/heaps/cma_heap.c
index 5e7c3436310c..3c4e34301172 100644
--- a/drivers/dma-buf/heaps/cma_heap.c
+++ b/drivers/dma-buf/heaps/cma_heap.c
@@ -20,6 +20,7 @@
#include <linux/module.h>
#include <linux/scatterlist.h>
#include <linux/slab.h>
+#include <linux/vmalloc.h>
struct cma_heap {
--
2.27.0
Powered by blists - more mailing lists