From mboxrd@z Thu Jan 1 00:00:00 1970 From: Randy Dunlap Subject: Re: randconfig build error with next-20141001, in drivers/gpu/drm/i915 Date: Wed, 01 Oct 2014 11:23:47 -0700 Message-ID: <542C46B3.2020901@infradead.org> References: <87fvf73c6g.fsf@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <87fvf73c6g.fsf@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Jani Nikula , Jim Davis , Stephen Rothwell , linux-next , linux-kernel , David Airlie , daniel.vetter@intel.com, intel-gfx@lists.freedesktop.org, dri-devel List-Id: intel-gfx@lists.freedesktop.org On 10/01/14 10:57, Jani Nikula wrote: > On Wed, 01 Oct 2014, Jim Davis wrote: >> Building with the attached random configuration file, >> >> warning: (VIDEO_TIMBERDALE) selects TIMB_DMA which has unmet direct >> dependencies (DMADEVICES && MFD_TIMBERDALE) >> warning: (USB_OTG_FSM && FSL_USB2_OTG && USB_MV_OTG) selects USB_OTG >> which has unmet direct dependencies (USB_SUPPORT && USB && PM_RUNTIME) >> >> drivers/built-in.o: In function `intel_panel_setup_backlight': >> (.text+0x11855d): undefined reference to `backlight_device_register' >> drivers/built-in.o: In function `intel_panel_destroy_backlight': >> (.text+0x118624): undefined reference to `backlight_device_unregister' >> make: *** [vmlinux] Error 1 > > It's the combination: > >> CONFIG_DRM_I915=y >> CONFIG_BACKLIGHT_CLASS_DEVICE=m > > Not sure what the Kconfig magic spell needs to be when we don't want to > depend on CONFIG_BACKLIGHT_CLASS_DEVICE but we'll use it if it's enabled > (y or m). Something like: depends on BACKLIGHT_CLASS_DEVICE || BACKLIGHT_CLASS_DEVICE=n is what we usually use. -- ~Randy