[PATCH] video: v4l2-ctrls.c missing include
From: Jerome Pinot
Date: Fri Aug 13 2010 - 08:14:42 EST
A missing include in drivers/media/video/v4l2-ctrls.c makes the kernel
(2.6.35-07788-g320b2b8) fail to build:
CC drivers/media/video/v4l2-ctrls.o
drivers/media/video/v4l2-ctrls.c: In function âv4l2_ctrl_handler_initâ:
drivers/media/video/v4l2-ctrls.c:766: error: implicit declaration of
function âkzallocâ
drivers/media/video/v4l2-ctrls.c:767: warning: assignment makes
pointer from integer without a cast
drivers/media/video/v4l2-ctrls.c: In function âv4l2_ctrl_handler_freeâ:
drivers/media/video/v4l2-ctrls.c:786: error: implicit declaration of
function âkfreeâ
drivers/media/video/v4l2-ctrls.c: In function âhandler_new_refâ:
drivers/media/video/v4l2-ctrls.c:896: warning: assignment makes
pointer from integer without a cast
drivers/media/video/v4l2-ctrls.c: In function âv4l2_ctrl_newâ:
drivers/media/video/v4l2-ctrls.c:975: warning: assignment makes
pointer from integer without a cast
drivers/media/video/v4l2-ctrls.c: In function âv4l2_g_ext_ctrlsâ:
drivers/media/video/v4l2-ctrls.c:1528: error: implicit declaration of
function âkmallocâ
drivers/media/video/v4l2-ctrls.c:1528: warning: assignment makes
pointer from integer without a cast
drivers/media/video/v4l2-ctrls.c: In function âtry_set_ext_ctrlsâ:
drivers/media/video/v4l2-ctrls.c:1752: warning: assignment makes
pointer from integer without a cast
make[3]: *** [drivers/media/video/v4l2-ctrls.o] Error 1
make[2]: *** [drivers/media/video] Error 2
make[1]: *** [drivers/media] Error 2
make: *** [drivers] Error 2
The following trivial patch corrects this.
Signed-off-by: Jerome Pinot <ngc891@xxxxxxxxx>
--
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>
--
JÃrÃme Pinot
http://ngc891.blogdns.net/
--
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/