V4L/DVB: v4l2-ctrls.c: needs to include slab.h
authorRandy Dunlap <randy.dunlap@oracle.com>
Mon, 9 Aug 2010 17:56:35 +0000 (14:56 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 12 Aug 2010 18:08:05 +0000 (15:08 -0300)
v4l2-ctrls.c needs to include slab.h to prevent build errors:

drivers/media/video/v4l2-ctrls.c:766: error: implicit declaration of function 'kzalloc'
drivers/media/video/v4l2-ctrls.c:786: error: implicit declaration of function 'kfree'
drivers/media/video/v4l2-ctrls.c:1528: error: implicit declaration of function 'kmalloc'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/v4l2-ctrls.c

index 84c1a53a727ac97a56cfa44166b443cd36a90df3..ea8d32cd425d9f1b06cdbb95749bf302ac43e033 100644 (file)
@@ -19,6 +19,7 @@
  */
 
 #include <linux/ctype.h>
+#include <linux/slab.h>
 #include <media/v4l2-ioctl.h>
 #include <media/v4l2-device.h>
 #include <media/v4l2-ctrls.h>