From patchwork Wed Mar 6 22:22:08 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Volokh Konstantin X-Patchwork-Id: 2228451 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id C1FE9DF23A for ; Wed, 6 Mar 2013 22:29:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754223Ab3CFW3f (ORCPT ); Wed, 6 Mar 2013 17:29:35 -0500 Received: from mail-la0-f51.google.com ([209.85.215.51]:47705 "EHLO mail-la0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753136Ab3CFW3f (ORCPT ); Wed, 6 Mar 2013 17:29:35 -0500 Received: by mail-la0-f51.google.com with SMTP id fo13so8039736lab.38 for ; Wed, 06 Mar 2013 14:29:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:date:from:to:cc:subject:message-id:mime-version :content-type:content-disposition:content-transfer-encoding:x-mailer :user-agent; bh=CZqy24biNs8PrQ4VFTI8SnTNA0aTdDdzZPNeaUz0HiY=; b=nyocHkuYC3RQW3G1WWR2vx9KMbpiIHHJzkFU+k9VurH7WoQUAR7uKMYt/nzwM75siL aZ2lnz0ltmqpOViRmwe29CyTDI+rGJV10yK5LDIgfFhrSoYi2XR8y1Rfi40asUjO6FPy 0b3G1DTlEJhTk9VboYpw4KIh5iirnS1lpmrkR8ePGJ8ndLNCAhm+6BEKJgZXNvPlZGIJ St0dScjjnw4MPwIPkua1IpvyQ605WxbGF/ZKCxz03XTHiK4GIGwR1HvkXL0iiOeKvRHH ateuJNsVsa6oPl6xCx4HUUyX0YFmPmzLXYcdaxFCyfBg33i2xSTWnUqhPcnkEMveW1IB 0Q0Q== X-Received: by 10.112.9.10 with SMTP id v10mr8312057lba.47.1362608973682; Wed, 06 Mar 2013 14:29:33 -0800 (PST) Received: from Volokh.Home (host-25-159-66-217.spbmts.ru. [217.66.159.25]) by mx.google.com with ESMTPS id gm20sm16672113lab.7.2013.03.06.14.29.30 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 06 Mar 2013 14:29:32 -0800 (PST) Date: Thu, 7 Mar 2013 02:22:08 +0400 From: Volokh Konstantin To: hverkuil@xs4all.nl, volokh84@gmail.com Cc: linux-media@vger.kernel.org Subject: [PATCH 1/2] hverkuil/go7007: media: i2c: Fix compilation errors Message-ID: <20130306222208.GC10958@Volokh.Home> MIME-Version: 1.0 Content-Disposition: inline X-Mailer: git-send-email 1.7.7.6 User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org 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 --- 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 #include #include +#include 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 #include #include +#include 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 #include #include +#include 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 #include #include +#include MODULE_DESCRIPTION("Sony TV Tuner driver"); MODULE_LICENSE("GPL v2");