linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] hverkuil/go7007: media: i2c: Fix compilation errors
@ 2013-03-06 22:22 Volokh Konstantin
  0 siblings, 0 replies; only message in thread
From: Volokh Konstantin @ 2013-03-06 22:22 UTC (permalink / raw)
  To: hverkuil, volokh84; +Cc: linux-media

Fix warnings as errors:
error: implicit declaration of function ‘kzalloc’ [-Werror=implicit-function-declaration]
error: implicit declaration of function ‘kfree’ [-Werror=implicit-function-declaration]

Signed-off-by: Volokh Konstantin <volokh84@gmail.com>
---
 drivers/media/i2c/ov7640.c        |    1 +
 drivers/media/i2c/tw9903.c        |    1 +
 drivers/media/i2c/uda1342.c       |    1 +
 drivers/media/tuners/sony-tuner.c |    1 +
 4 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/drivers/media/i2c/ov7640.c b/drivers/media/i2c/ov7640.c
index 535cf29..224d7cd 100644
--- a/drivers/media/i2c/ov7640.c
+++ b/drivers/media/i2c/ov7640.c
@@ -21,6 +21,7 @@
 #include <linux/videodev2.h>
 #include <media/v4l2-device.h>
 #include <media/v4l2-chip-ident.h>
+#include <linux/slab.h>
 
 MODULE_DESCRIPTION("OmniVision ov7640 sensor driver");
 MODULE_LICENSE("GPL v2");
diff --git a/drivers/media/i2c/tw9903.c b/drivers/media/i2c/tw9903.c
index f859d3a..0c39d38 100644
--- a/drivers/media/i2c/tw9903.c
+++ b/drivers/media/i2c/tw9903.c
@@ -22,6 +22,7 @@
 #include <linux/ioctl.h>
 #include <media/v4l2-device.h>
 #include <media/v4l2-ctrls.h>
+#include <linux/slab.h>
 
 MODULE_DESCRIPTION("TW9903 I2C subdev driver");
 MODULE_LICENSE("GPL v2");
diff --git a/drivers/media/i2c/uda1342.c b/drivers/media/i2c/uda1342.c
index 82319d0..7800236 100644
--- a/drivers/media/i2c/uda1342.c
+++ b/drivers/media/i2c/uda1342.c
@@ -21,6 +21,7 @@
 #include <linux/videodev2.h>
 #include <media/v4l2-device.h>
 #include <media/uda1342.h>
+#include <linux/slab.h>
 
 static int write_reg(struct i2c_client *client, int reg, int value)
 {
diff --git a/drivers/media/tuners/sony-tuner.c b/drivers/media/tuners/sony-tuner.c
index 1b77529..8411e97 100644
--- a/drivers/media/tuners/sony-tuner.c
+++ b/drivers/media/tuners/sony-tuner.c
@@ -23,6 +23,7 @@
 #include <media/v4l2-common.h>
 #include <media/v4l2-ioctl.h>
 #include <media/v4l2-device.h>
+#include <linux/slab.h>
 
 MODULE_DESCRIPTION("Sony TV Tuner driver");
 MODULE_LICENSE("GPL v2");
-- 
1.7.7.6


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-03-06 22:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-06 22:22 [PATCH 1/2] hverkuil/go7007: media: i2c: Fix compilation errors Volokh Konstantin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).