[PATCH] fix v4l2-ctrls compilation

From: Meelis Roos
Date: Thu Aug 12 2010 - 13:46:15 EST


Current git has broken v4l2-ctrls compilation - kzalloc et al are
missing prototypes. Fix it by including linux/slab.h that contains the
definitions.

Signed-off-by: Meelis Roos <mroos@xxxxxxxx>

diff --git a/drivers/media/video/v4l2-ctrls.c b/drivers/media/video/v4l2-ctrls.c
index 84c1a53..ea8d32c 100644
--- a/drivers/media/video/v4l2-ctrls.c
+++ b/drivers/media/video/v4l2-ctrls.c
@@ -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>

--
Meelis Roos <mroos@xxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/