diff options
author | Amit Pundir <amit.pundir@linaro.org> | 2015-04-01 16:44:44 +0530 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2015-11-19 12:38:20 -0800 |
commit | a57fb60b0419601c9dd66c8021feccbb846d5223 (patch) | |
tree | 0b5ef6da5816db811efcd4a204d9ab520fd5488e /drivers/video | |
parent | 43fbe0ca749fe24cb17cd16a099bd858ed119604 (diff) | |
download | v4.1-a57fb60b0419601c9dd66c8021feccbb846d5223.tar.gz |
video: adf: fix memblock build failure
Pass 'NULL' as the 5th argument to dma_buf_export() to fix
the following build failure:
----------
CC drivers/video/adf/adf_memblock.o
drivers/video/adf/adf_memblock.c: In function ‘adf_memblock_export’:
drivers/video/adf/adf_memblock.c:154:60: error: macro "dma_buf_export" requires 5 arguments, but only 4 given
drivers/video/adf/adf_memblock.c:154:8: error: ‘dma_buf_export’ undeclared (first use in this function)
drivers/video/adf/adf_memblock.c:154:8: note: each undeclared identifier is reported only once for each function it appears in
make[3]: *** [drivers/video/adf/adf_memblock.o] Error 1
make[2]: *** [drivers/video/adf] Error 2
----------
5th argument to dma_buf_export() is a pointer to 'reservation-object'
and a new 'reservation-object' is allocated in case 'NULL' is passed.
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/adf/adf_memblock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/adf/adf_memblock.c b/drivers/video/adf/adf_memblock.c index e73a7d59f1e..ab583f838db 100644 --- a/drivers/video/adf/adf_memblock.c +++ b/drivers/video/adf/adf_memblock.c @@ -151,7 +151,7 @@ struct dma_buf *adf_memblock_export(phys_addr_t base, size_t size, int flags) return ERR_PTR(-ENOMEM); pdata->base = base; - buf = dma_buf_export(pdata, &adf_memblock_ops, size, flags); + buf = dma_buf_export(pdata, &adf_memblock_ops, size, flags, NULL); if (IS_ERR(buf)) kfree(pdata); |