[PATCH] Fix compile error in as3645a.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Building as3645a.c using media_build on kernel 3.2 gives this error:

media_build/v4l/as3645a.c: In function 'as3645a_probe':
media_build/v4l/as3645a.c:815:2: error: implicit declaration of function 'kzalloc' [-Werror=implicit-function-declaration]
media_build/v4l/as3645a.c:815:8: warning: assignment makes pointer from integer without a cast [enabled by default]
media_build/v4l/as3645a.c:842:3: error: implicit declaration of function 'kfree' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors

The fix is trivial:

diff --git a/drivers/media/video/as3645a.c b/drivers/media/video/as3645a.c
index ec859a5..f241702 100644
--- a/drivers/media/video/as3645a.c
+++ b/drivers/media/video/as3645a.c
@@ -29,6 +29,7 @@
 #include <linux/i2c.h>
 #include <linux/module.h>
 #include <linux/mutex.h>
+#include <linux/slab.h>
 
 #include <media/as3645a.h>
 #include <media/v4l2-ctrls.h>


Signed-off-by: Hans Verkuil <hans.verkuil@xxxxxxxxx>

Regards,

	Hans
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux