Message ID | 1443777555-6710-1-git-send-email-j.anaszewski@samsung.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 1ZhwV5-0003IT-7n; Fri, 02 Oct 2015 11:19:35 +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.76/mailfrontend-8) with esmtp id 1ZhwV2-0005rG-lK; Fri, 02 Oct 2015 11:19:34 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751789AbbJBJTa (ORCPT <rfc822;mkrufky@linuxtv.org> + 1 other); Fri, 2 Oct 2015 05:19:30 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:40023 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751450AbbJBJT3 (ORCPT <rfc822; linux-media@vger.kernel.org>); Fri, 2 Oct 2015 05:19:29 -0400 Received: from epcpsbgm2new.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NVL00ES05WC46D0@mailout2.samsung.com>; Fri, 02 Oct 2015 18:19:24 +0900 (KST) X-AuditID: cbfee61b-f79d56d0000048c5-2f-560e4c1ce461 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id 69.B3.18629.C1C4E065; Fri, 2 Oct 2015 18:19:24 +0900 (KST) Received: from AMDC2362.DIGITAL.local ([106.120.53.23]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0NVL00C355W6AR70@mmp1.samsung.com>; Fri, 02 Oct 2015 18:19:24 +0900 (KST) From: Jacek Anaszewski <j.anaszewski@samsung.com> To: linux-media@vger.kernel.org Cc: linux-leds@vger.kernel.org, Jacek Anaszewski <j.anaszewski@samsung.com>, Sakari Ailus <sakari.ailus@iki.fi>, Hans Verkuil <hans.verkuil@cisco.com> Subject: [PATCH] v4l2-flash-led-class: Add missing VIDEO_V4L2 Kconfig dependency Date: Fri, 02 Oct 2015 11:19:15 +0200 Message-id: <1443777555-6710-1-git-send-email-j.anaszewski@samsung.com> X-Mailer: git-send-email 1.7.9.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrPJMWRmVeSWpSXmKPExsVy+t9jAV0ZH74wgy9dXBZLfu5isui9+pzR YuubdYwWPRu2slqc2b+SzYHVY8rvjaweh78uZPHo27KK0ePzJrkAligum5TUnMyy1CJ9uwSu jG3bd7AWdIhUPJh8nqWB8YtgFyMnh4SAiUTHpkPMELaYxIV769m6GLk4hASWMkpsWr6bGcL5 ySgxcdVRFpAqNgFDiZ8vXjOB2CIC8hJPem+AdTALzGCUuDBjKViRsECAxNLOWWwgNouAqsSl j7uBGjg4eAXcJX6/dwQxJQQUJOZMspnAyL2AkWEVo0RqQXJBcVJ6rlFearlecWJucWleul5y fu4mRnAwPJPewXh4l/shRgEORiUe3ojTvGFCrIllxZW5hxglOJiVRHi9lPjChHhTEiurUovy 44tKc1KLDzFKc7AoifPeOMQQJiSQnliSmp2aWpBaBJNl4uCUamAUUrjVtTP49TVetpC552bP YdL4nrTZsc48dx3Ty9ni5wNVrl/mn/6hsIrRcst57x1K95yYudizHJQVzOV6ZXTqwhhbfDnN 5nycuaL5/WOljgssqXYFy9WPaL7ak7pvm2ZQ1aw4vmSOq4lnblXv/LRbSvgSi6mA8aJrrCrW 176L8rMc/r5YIE+JpTgj0VCLuag4EQBXXbzXAgIAAA== 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: 6.0.0.2142326, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2015.10.2.91217 X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' MULTIPLE_RCPTS 0.1, HTML_00_01 0.05, HTML_00_10 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_2000_2999 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, NO_URI_HTTPS 0, SINGLE_URI_IN_BODY 0, URI_ENDS_IN_HTML 0, __ANY_URI 0, __CP_URI_IN_BODY 0, __HAS_FROM 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __HAS_X_MAILING_LIST 0, __MIME_TEXT_ONLY 0, __MULTIPLE_RCPTS_CC_X2 0, __SANE_MSGID 0, __SINGLE_URI_TEXT 0, __SUBJ_ALPHA_END 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_IN_BODY 0, __URI_NO_WWW 0, __URI_NS ' |
Commit Message
Jacek Anaszewski
Oct. 2, 2015, 9:19 a.m. UTC
Fixes the following randconfig problem:
drivers/built-in.o: In function `v4l2_flash_release':
(.text+0x12204f): undefined reference to `v4l2_async_unregister_subdev'
drivers/built-in.o: In function `v4l2_flash_release':
(.text+0x122057): undefined reference to `v4l2_ctrl_handler_free'
drivers/built-in.o: In function `v4l2_flash_close':
v4l2-flash-led-class.c:(.text+0x12208f): undefined reference to `v4l2_fh_is_singular'
v4l2-flash-led-class.c:(.text+0x1220c8): undefined reference to `__v4l2_ctrl_s_ctrl'
drivers/built-in.o: In function `v4l2_flash_open':
v4l2-flash-led-class.c:(.text+0x12227f): undefined reference to `v4l2_fh_is_singular'
drivers/built-in.o: In function `v4l2_flash_init_controls':
v4l2-flash-led-class.c:(.text+0x12274e): undefined reference to `v4l2_ctrl_handler_init_class'
v4l2-flash-led-class.c:(.text+0x122797): undefined reference to `v4l2_ctrl_new_std_menu'
v4l2-flash-led-class.c:(.text+0x1227e0): undefined reference to `v4l2_ctrl_new_std'
v4l2-flash-led-class.c:(.text+0x122826): undefined reference to `v4l2_ctrl_handler_setup'
v4l2-flash-led-class.c:(.text+0x122839): undefined reference to `v4l2_ctrl_handler_free'
drivers/built-in.o: In function `v4l2_flash_init':
(.text+0x1228e2): undefined reference to `v4l2_subdev_init'
drivers/built-in.o: In function `v4l2_flash_init':
(.text+0x12293b): undefined reference to `v4l2_async_register_subdev'
drivers/built-in.o: In function `v4l2_flash_init':
(.text+0x122949): undefined reference to `v4l2_ctrl_handler_free'
drivers/built-in.o:(.rodata+0x20ef8): undefined reference to `v4l2_subdev_queryctrl'
drivers/built-in.o:(.rodata+0x20f10): undefined reference to `v4l2_subdev_querymenu'
Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Cc: Sakari Ailus <sakari.ailus@iki.fi>
Cc: Hans Verkuil <hans.verkuil@cisco.com>
---
drivers/media/v4l2-core/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Hi Jacek, On Fri, Oct 02, 2015 at 11:19:15AM +0200, Jacek Anaszewski wrote: > Fixes the following randconfig problem: > > drivers/built-in.o: In function `v4l2_flash_release': > (.text+0x12204f): undefined reference to `v4l2_async_unregister_subdev' > drivers/built-in.o: In function `v4l2_flash_release': > (.text+0x122057): undefined reference to `v4l2_ctrl_handler_free' > drivers/built-in.o: In function `v4l2_flash_close': > v4l2-flash-led-class.c:(.text+0x12208f): undefined reference to `v4l2_fh_is_singular' > v4l2-flash-led-class.c:(.text+0x1220c8): undefined reference to `__v4l2_ctrl_s_ctrl' > drivers/built-in.o: In function `v4l2_flash_open': > v4l2-flash-led-class.c:(.text+0x12227f): undefined reference to `v4l2_fh_is_singular' > drivers/built-in.o: In function `v4l2_flash_init_controls': > v4l2-flash-led-class.c:(.text+0x12274e): undefined reference to `v4l2_ctrl_handler_init_class' > v4l2-flash-led-class.c:(.text+0x122797): undefined reference to `v4l2_ctrl_new_std_menu' > v4l2-flash-led-class.c:(.text+0x1227e0): undefined reference to `v4l2_ctrl_new_std' > v4l2-flash-led-class.c:(.text+0x122826): undefined reference to `v4l2_ctrl_handler_setup' > v4l2-flash-led-class.c:(.text+0x122839): undefined reference to `v4l2_ctrl_handler_free' > drivers/built-in.o: In function `v4l2_flash_init': > (.text+0x1228e2): undefined reference to `v4l2_subdev_init' > drivers/built-in.o: In function `v4l2_flash_init': > (.text+0x12293b): undefined reference to `v4l2_async_register_subdev' > drivers/built-in.o: In function `v4l2_flash_init': > (.text+0x122949): undefined reference to `v4l2_ctrl_handler_free' > drivers/built-in.o:(.rodata+0x20ef8): undefined reference to `v4l2_subdev_queryctrl' > drivers/built-in.o:(.rodata+0x20f10): undefined reference to `v4l2_subdev_querymenu' > > Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com> > Reported-by: kbuild test robot <fengguang.wu@intel.com> > Cc: Sakari Ailus <sakari.ailus@iki.fi> > Cc: Hans Verkuil <hans.verkuil@cisco.com> > --- > drivers/media/v4l2-core/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/media/v4l2-core/Kconfig b/drivers/media/v4l2-core/Kconfig > index 82876a6..9beece0 100644 > --- a/drivers/media/v4l2-core/Kconfig > +++ b/drivers/media/v4l2-core/Kconfig > @@ -47,7 +47,7 @@ config V4L2_MEM2MEM_DEV > # Used by LED subsystem flash drivers > config V4L2_FLASH_LED_CLASS > tristate "V4L2 flash API for LED flash class devices" > - depends on VIDEO_V4L2_SUBDEV_API > + depends on VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API > depends on LEDS_CLASS_FLASH > ---help--- > Say Y here to enable V4L2 flash API support for LED flash Hmm. I wonder if VIDEO_V4L2_SUBDEV_API itself should depend on VIDEO_V4L2. That'd be logical, I don't think VIDEO_V4L2_SUBDEV_API could be meaningfully used with VIDEO_V4L2 disabled. The API implementation is in v4l2-subdev.c which itself depends on VIDEO_V4L2. Oddly enough, VIDEO_V4L2_SUBDEV_API is currently defined in drivers/media/Kconfig, it should probably be in drivers/media/v4l2-core/Kconfig instead.
Hi Sakari, On 10/02/2015 11:41 AM, Sakari Ailus wrote: > Hi Jacek, > > On Fri, Oct 02, 2015 at 11:19:15AM +0200, Jacek Anaszewski wrote: >> Fixes the following randconfig problem: >> >> drivers/built-in.o: In function `v4l2_flash_release': >> (.text+0x12204f): undefined reference to `v4l2_async_unregister_subdev' >> drivers/built-in.o: In function `v4l2_flash_release': >> (.text+0x122057): undefined reference to `v4l2_ctrl_handler_free' >> drivers/built-in.o: In function `v4l2_flash_close': >> v4l2-flash-led-class.c:(.text+0x12208f): undefined reference to `v4l2_fh_is_singular' >> v4l2-flash-led-class.c:(.text+0x1220c8): undefined reference to `__v4l2_ctrl_s_ctrl' >> drivers/built-in.o: In function `v4l2_flash_open': >> v4l2-flash-led-class.c:(.text+0x12227f): undefined reference to `v4l2_fh_is_singular' >> drivers/built-in.o: In function `v4l2_flash_init_controls': >> v4l2-flash-led-class.c:(.text+0x12274e): undefined reference to `v4l2_ctrl_handler_init_class' >> v4l2-flash-led-class.c:(.text+0x122797): undefined reference to `v4l2_ctrl_new_std_menu' >> v4l2-flash-led-class.c:(.text+0x1227e0): undefined reference to `v4l2_ctrl_new_std' >> v4l2-flash-led-class.c:(.text+0x122826): undefined reference to `v4l2_ctrl_handler_setup' >> v4l2-flash-led-class.c:(.text+0x122839): undefined reference to `v4l2_ctrl_handler_free' >> drivers/built-in.o: In function `v4l2_flash_init': >> (.text+0x1228e2): undefined reference to `v4l2_subdev_init' >> drivers/built-in.o: In function `v4l2_flash_init': >> (.text+0x12293b): undefined reference to `v4l2_async_register_subdev' >> drivers/built-in.o: In function `v4l2_flash_init': >> (.text+0x122949): undefined reference to `v4l2_ctrl_handler_free' >> drivers/built-in.o:(.rodata+0x20ef8): undefined reference to `v4l2_subdev_queryctrl' >> drivers/built-in.o:(.rodata+0x20f10): undefined reference to `v4l2_subdev_querymenu' >> >> Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com> >> Reported-by: kbuild test robot <fengguang.wu@intel.com> >> Cc: Sakari Ailus <sakari.ailus@iki.fi> >> Cc: Hans Verkuil <hans.verkuil@cisco.com> >> --- >> drivers/media/v4l2-core/Kconfig | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/drivers/media/v4l2-core/Kconfig b/drivers/media/v4l2-core/Kconfig >> index 82876a6..9beece0 100644 >> --- a/drivers/media/v4l2-core/Kconfig >> +++ b/drivers/media/v4l2-core/Kconfig >> @@ -47,7 +47,7 @@ config V4L2_MEM2MEM_DEV >> # Used by LED subsystem flash drivers >> config V4L2_FLASH_LED_CLASS >> tristate "V4L2 flash API for LED flash class devices" >> - depends on VIDEO_V4L2_SUBDEV_API >> + depends on VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API >> depends on LEDS_CLASS_FLASH >> ---help--- >> Say Y here to enable V4L2 flash API support for LED flash > > Hmm. I wonder if VIDEO_V4L2_SUBDEV_API itself should depend on VIDEO_V4L2. > > That'd be logical, I don't think VIDEO_V4L2_SUBDEV_API could be meaningfully > used with VIDEO_V4L2 disabled. The API implementation is in v4l2-subdev.c > which itself depends on VIDEO_V4L2. > > Oddly enough, VIDEO_V4L2_SUBDEV_API is currently defined in > drivers/media/Kconfig, it should probably be in > drivers/media/v4l2-core/Kconfig instead. > Since I don't see any Makefile referring to this symbol, it seems that moving it to drivers/media/v4l2-core/Kconfig and adding VIDEO_V4L2 dependency should be non-problematic operation. I can submit relevant patch if everyone agrees.
diff --git a/drivers/media/v4l2-core/Kconfig b/drivers/media/v4l2-core/Kconfig index 82876a6..9beece0 100644 --- a/drivers/media/v4l2-core/Kconfig +++ b/drivers/media/v4l2-core/Kconfig @@ -47,7 +47,7 @@ config V4L2_MEM2MEM_DEV # Used by LED subsystem flash drivers config V4L2_FLASH_LED_CLASS tristate "V4L2 flash API for LED flash class devices" - depends on VIDEO_V4L2_SUBDEV_API + depends on VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API depends on LEDS_CLASS_FLASH ---help--- Say Y here to enable V4L2 flash API support for LED flash