[lkml]   [2020]   [Dec]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH] dma-buf: cma_heap: Include linux/vmalloc.h to fix build failures on MIPS
We need to include <linux/vmalloc.h> in order for MIPS to find
vmap(), as it doesn't otherwise get included there.

Without this patch, one can hit the following build error:
drivers/dma-buf/heaps/cma_heap.c: In function 'cma_heap_do_vmap':
drivers/dma-buf/heaps/cma_heap.c:195:10: error: implicit declaration of function 'vmap'

Cc: Sumit Semwal <>
Cc: Liam Mark <>
Cc: Laura Abbott <>
Cc: Brian Starkey <>
Cc: Hridya Valsaraju <>
Cc: Suren Baghdasaryan <>
Cc: Sandeep Patil <>
Cc: Daniel Mentz <>
Cc: Chris Goldsworthy <>
Cc: Ørjan Eide <>
Cc: Robin Murphy <>
Cc: Ezequiel Garcia <>
Cc: Simon Ser <>
Cc: James Jones <>
Fixes: a5d2d29e24be ("dma-buf: heaps: Move heap-helper logic into the cma_heap implementation")
Reported-by: Guenter Roeck <>
Signed-off-by: John Stultz <>
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 {
 \ /
  Last update: 2020-12-16 01:52    [W:0.070 / U:0.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site