@@ -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");
@@ -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");
@@ -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)
{
@@ -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");
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(-)