Message ID | 1317418491-26513-1-git-send-email-paul.gortmaker@windriver.com (mailing list archive) |
---|---|
State | Accepted, archived |
Headers |
Received: from mail.tu-berlin.de ([130.149.7.33]) by www.linuxtv.org with esmtp (Exim 4.72) (envelope-from <linux-media-owner@vger.kernel.org>) id 1R9kjn-0002Cf-9x; Fri, 30 Sep 2011 23:35:20 +0200 X-tubIT-Incoming-IP: 209.132.180.67 Received: from vger.kernel.org ([209.132.180.67]) by mail.tu-berlin.de (exim-4.75/mailfrontend-1) with esmtp id 1R9kjm-0005xz-KH; Fri, 30 Sep 2011 23:35:18 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755460Ab1I3VfP (ORCPT <rfc822;patchwork@linuxtv.org> + 4 others); Fri, 30 Sep 2011 17:35:15 -0400 Received: from mail.windriver.com ([147.11.1.11]:38620 "EHLO mail.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751064Ab1I3VfO (ORCPT <rfc822;linux-media@vger.kernel.org>); Fri, 30 Sep 2011 17:35:14 -0400 Received: from yow-pgortmak-d1.corp.ad.wrs.com (yow-pgortmak-d1.ottawa.windriver.com [128.224.146.65]) by mail.windriver.com (8.14.3/8.14.3) with ESMTP id p8ULZ6Ll019697; Fri, 30 Sep 2011 14:35:06 -0700 (PDT) From: Paul Gortmaker <paul.gortmaker@windriver.com> To: mchehab@redhat.com Cc: rdunlap@xenotime.net, sfr@canb.auug.org.au, linux-next@vger.kernel.org, linux-media@vger.kernel.org, Paul Gortmaker <paul.gortmaker@windriver.com> Subject: [PATCH] drivers/media: fix dependencies in video mt9t001/mt9p031 Date: Fri, 30 Sep 2011 17:34:51 -0400 Message-Id: <1317418491-26513-1-git-send-email-paul.gortmaker@windriver.com> X-Mailer: git-send-email 1.7.4.4 In-Reply-To: <4E83A02F.2020309@xenotime.net> References: <4E83A02F.2020309@xenotime.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: <linux-media.vger.kernel.org> X-Mailing-List: linux-media@vger.kernel.org X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2011.9.30.213015 X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' MULTIPLE_RCPTS 0.1, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_2000_2999 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, DATE_TZ_NA 0, __ANY_URI 0, __CP_MEDIA_BODY 0, __CP_URI_IN_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __HAS_X_MAILING_LIST 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __MULTIPLE_RCPTS_CC_X2 0, __SANE_MSGID 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_NO_WWW 0, __URI_NS ' X-LSpam-Score: 1.0 (+) X-LSpam-Report: No, score=1.0 required=5.0 tests=BAYES_00=-1.9, KB_DATE_CONTAINS_TAB=2.751, RCVD_IN_DNSWL_MED=-2.3, TAB_IN_FROM=2.494 autolearn=no |
Commit Message
Paul Gortmaker
Sept. 30, 2011, 9:34 p.m. UTC
Both mt9t001.c and mt9p031.c have two identical issues, those
being that they will need module.h inclusion for the upcoming
cleanup going on there, and that their dependencies don't limit
selection of configs that will fail to compile as follows:
drivers/media/video/mt9p031.c:457: error: implicit declaration of function ‘v4l2_subdev_get_try_crop’
drivers/media/video/mt9t001.c:787: error: ‘struct v4l2_subdev’ has no member named ‘entity’
The related config options are CONFIG_MEDIA_CONTROLLER and
CONFIG_VIDEO_V4L2_SUBDEV_API. Looking at the code, it appears
that the driver was never intended to work without these enabled,
so add a dependency on CONFIG_VIDEO_V4L2_SUBDEV_API, which in
turn already has a dependency on CONFIG_MEDIA_CONTROLLER.
Reported-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Comments
On 09/30/11 14:34, Paul Gortmaker wrote: > Both mt9t001.c and mt9p031.c have two identical issues, those > being that they will need module.h inclusion for the upcoming > cleanup going on there, and that their dependencies don't limit > selection of configs that will fail to compile as follows: > > drivers/media/video/mt9p031.c:457: error: implicit declaration of function ‘v4l2_subdev_get_try_crop’ > drivers/media/video/mt9t001.c:787: error: ‘struct v4l2_subdev’ has no member named ‘entity’ > > The related config options are CONFIG_MEDIA_CONTROLLER and > CONFIG_VIDEO_V4L2_SUBDEV_API. Looking at the code, it appears > that the driver was never intended to work without these enabled, > so add a dependency on CONFIG_VIDEO_V4L2_SUBDEV_API, which in > turn already has a dependency on CONFIG_MEDIA_CONTROLLER. > > Reported-by: Randy Dunlap <rdunlap@xenotime.net> > Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Acked-by: Randy Dunlap <rdunlap@xenotime.net> Thanks, Paul. > > diff --git a/drivers/media/video/Kconfig b/drivers/media/video/Kconfig > index 75e43c0..d285c8c 100644 > --- a/drivers/media/video/Kconfig > +++ b/drivers/media/video/Kconfig > @@ -469,14 +469,14 @@ config VIDEO_OV7670 > > config VIDEO_MT9P031 > tristate "Aptina MT9P031 support" > - depends on I2C && VIDEO_V4L2 > + depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API > ---help--- > This is a Video4Linux2 sensor-level driver for the Aptina > (Micron) mt9p031 5 Mpixel camera. > > config VIDEO_MT9T001 > tristate "Aptina MT9T001 support" > - depends on I2C && VIDEO_V4L2 > + depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API > ---help--- > This is a Video4Linux2 sensor-level driver for the Aptina > (Micron) mt0t001 3 Mpixel camera. > diff --git a/drivers/media/video/mt9p031.c b/drivers/media/video/mt9p031.c > index 8bcb1ce..fc9603f 100644 > --- a/drivers/media/video/mt9p031.c > +++ b/drivers/media/video/mt9p031.c > @@ -14,6 +14,7 @@ > > #include <linux/delay.h> > #include <linux/device.h> > +#include <linux/module.h> > #include <linux/i2c.h> > #include <linux/log2.h> > #include <linux/pm.h> > diff --git a/drivers/media/video/mt9t001.c b/drivers/media/video/mt9t001.c > index ae75d82..280d01d 100644 > --- a/drivers/media/video/mt9t001.c > +++ b/drivers/media/video/mt9t001.c > @@ -13,6 +13,7 @@ > */ > > #include <linux/i2c.h> > +#include <linux/module.h> > #include <linux/log2.h> > #include <linux/slab.h> > #include <linux/videodev2.h>
Hi Mauro, On Fri, 30 Sep 2011 15:38:13 -0700 Randy Dunlap <rdunlap@xenotime.net> wrote: > > On 09/30/11 14:34, Paul Gortmaker wrote: > > Both mt9t001.c and mt9p031.c have two identical issues, those > > being that they will need module.h inclusion for the upcoming > > cleanup going on there, and that their dependencies don't limit > > selection of configs that will fail to compile as follows: > > > > drivers/media/video/mt9p031.c:457: error: implicit declaration of function ‘v4l2_subdev_get_try_crop’ > > drivers/media/video/mt9t001.c:787: error: ‘struct v4l2_subdev’ has no member named ‘entity’ > > > > The related config options are CONFIG_MEDIA_CONTROLLER and > > CONFIG_VIDEO_V4L2_SUBDEV_API. Looking at the code, it appears > > that the driver was never intended to work without these enabled, > > so add a dependency on CONFIG_VIDEO_V4L2_SUBDEV_API, which in > > turn already has a dependency on CONFIG_MEDIA_CONTROLLER. > > > > Reported-by: Randy Dunlap <rdunlap@xenotime.net> > > Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> > > Acked-by: Randy Dunlap <rdunlap@xenotime.net> Ping?
Em 06-10-2011 00:02, Stephen Rothwell escreveu: > Hi Mauro, > > On Fri, 30 Sep 2011 15:38:13 -0700 Randy Dunlap<rdunlap@xenotime.net> wrote: >> >> On 09/30/11 14:34, Paul Gortmaker wrote: >>> Both mt9t001.c and mt9p031.c have two identical issues, those >>> being that they will need module.h inclusion for the upcoming >>> cleanup going on there, and that their dependencies don't limit >>> selection of configs that will fail to compile as follows: >>> >>> drivers/media/video/mt9p031.c:457: error: implicit declaration of function ‘v4l2_subdev_get_try_crop’ >>> drivers/media/video/mt9t001.c:787: error: ‘struct v4l2_subdev’ has no member named ‘entity’ >>> >>> The related config options are CONFIG_MEDIA_CONTROLLER and >>> CONFIG_VIDEO_V4L2_SUBDEV_API. Looking at the code, it appears >>> that the driver was never intended to work without these enabled, >>> so add a dependency on CONFIG_VIDEO_V4L2_SUBDEV_API, which in >>> turn already has a dependency on CONFIG_MEDIA_CONTROLLER. >>> >>> Reported-by: Randy Dunlap<rdunlap@xenotime.net> >>> Signed-off-by: Paul Gortmaker<paul.gortmaker@windriver.com> >> >> Acked-by: Randy Dunlap<rdunlap@xenotime.net> > > Ping? > Sorry, I was assuming that this patch would be going together with the other module.h trees. I'll apply it on my tree. Thanks, Mauro -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Sat, Oct 8, 2011 at 6:52 AM, Mauro Carvalho Chehab <mchehab@redhat.com> wrote: > Em 06-10-2011 00:02, Stephen Rothwell escreveu: >> >> Hi Mauro, >> >> On Fri, 30 Sep 2011 15:38:13 -0700 Randy Dunlap<rdunlap@xenotime.net> >> wrote: >>> >>> On 09/30/11 14:34, Paul Gortmaker wrote: >>>> >>>> Both mt9t001.c and mt9p031.c have two identical issues, those >>>> being that they will need module.h inclusion for the upcoming >>>> cleanup going on there, and that their dependencies don't limit >>>> selection of configs that will fail to compile as follows: >>>> >>>> drivers/media/video/mt9p031.c:457: error: implicit declaration of >>>> function ‘v4l2_subdev_get_try_crop’ >>>> drivers/media/video/mt9t001.c:787: error: ‘struct v4l2_subdev’ has no >>>> member named ‘entity’ >>>> >>>> The related config options are CONFIG_MEDIA_CONTROLLER and >>>> CONFIG_VIDEO_V4L2_SUBDEV_API. Looking at the code, it appears >>>> that the driver was never intended to work without these enabled, >>>> so add a dependency on CONFIG_VIDEO_V4L2_SUBDEV_API, which in >>>> turn already has a dependency on CONFIG_MEDIA_CONTROLLER. >>>> >>>> Reported-by: Randy Dunlap<rdunlap@xenotime.net> >>>> Signed-off-by: Paul Gortmaker<paul.gortmaker@windriver.com> >>> >>> Acked-by: Randy Dunlap<rdunlap@xenotime.net> >> >> Ping? >> > Sorry, I was assuming that this patch would be going together with the > other module.h trees. I'll apply it on my tree. Thanks. Since the files in question don't exist on mainline, there is no real way I can have it directly on the module.h tree. If your file(s) needed the export.h file, (which my tree creates) then I'd have carried it as a post-merge delta to get past the chicken-and-egg problem of who's new file comes 1st. But since your file really just needs module.h -- you can add it to your tree right away. Plus the Kconfig change I made really should be SOB by the folks who know the driver restrictions; I just made an educated guess. Paul. > > Thanks, > Mauro > -- > To unsubscribe from this list: send the line "unsubscribe linux-next" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/media/video/Kconfig b/drivers/media/video/Kconfig index 75e43c0..d285c8c 100644 --- a/drivers/media/video/Kconfig +++ b/drivers/media/video/Kconfig @@ -469,14 +469,14 @@ config VIDEO_OV7670 config VIDEO_MT9P031 tristate "Aptina MT9P031 support" - depends on I2C && VIDEO_V4L2 + depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API ---help--- This is a Video4Linux2 sensor-level driver for the Aptina (Micron) mt9p031 5 Mpixel camera. config VIDEO_MT9T001 tristate "Aptina MT9T001 support" - depends on I2C && VIDEO_V4L2 + depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API ---help--- This is a Video4Linux2 sensor-level driver for the Aptina (Micron) mt0t001 3 Mpixel camera. diff --git a/drivers/media/video/mt9p031.c b/drivers/media/video/mt9p031.c index 8bcb1ce..fc9603f 100644 --- a/drivers/media/video/mt9p031.c +++ b/drivers/media/video/mt9p031.c @@ -14,6 +14,7 @@ #include <linux/delay.h> #include <linux/device.h> +#include <linux/module.h> #include <linux/i2c.h> #include <linux/log2.h> #include <linux/pm.h> diff --git a/drivers/media/video/mt9t001.c b/drivers/media/video/mt9t001.c index ae75d82..280d01d 100644 --- a/drivers/media/video/mt9t001.c +++ b/drivers/media/video/mt9t001.c @@ -13,6 +13,7 @@ */ #include <linux/i2c.h> +#include <linux/module.h> #include <linux/log2.h> #include <linux/slab.h> #include <linux/videodev2.h>