summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/coda
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2014-09-19 08:32:30 -0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2014-09-21 16:43:28 -0300
commitc0aaf696d45e2a72048a56441e81dad78659c698 (patch)
tree8e163c98eee30109a20535f15b0c51935fb6d2ca /drivers/media/platform/coda
parent976bcb2f6f9c9fb11f0aad7b7c87953e9c3f0116 (diff)
downloadop-kernel-dev-c0aaf696d45e2a72048a56441e81dad78659c698.zip
op-kernel-dev-c0aaf696d45e2a72048a56441e81dad78659c698.tar.gz
[media] coda: coda-bit: Include "<linux/slab.h>"
coda-bit uses kmalloc/kfree functions, so the slab header needs to be included in order to fix the following build errors: drivers/media/platform/coda/coda-bit.c: In function 'coda_fill_bitstream': drivers/media/platform/coda/coda-bit.c:231:4: error: implicit declaration of function 'kmalloc' [-Werror=implicit-function-declaration] drivers/media/platform/coda/coda-bit.c: In function 'coda_alloc_framebuffers': drivers/media/platform/coda/coda-bit.c:312:3: error: implicit declaration of function 'kfree' [-Werror=implicit-function-declaration] Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Acked-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/platform/coda')
-rw-r--r--drivers/media/platform/coda/coda-bit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/platform/coda/coda-bit.c b/drivers/media/platform/coda/coda-bit.c
index 07fc91a..9b8ea8b 100644
--- a/drivers/media/platform/coda/coda-bit.c
+++ b/drivers/media/platform/coda/coda-bit.c
@@ -17,6 +17,7 @@
#include <linux/kernel.h>
#include <linux/platform_device.h>
#include <linux/reset.h>
+#include <linux/slab.h>
#include <linux/videodev2.h>
#include <media/v4l2-common.h>
OpenPOWER on IntegriCloud