Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758864AbcCDPiL (ORCPT ); Fri, 4 Mar 2016 10:38:11 -0500 Received: from mout.kundenserver.de ([217.72.192.73]:52946 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757565AbcCDPiI (ORCPT ); Fri, 4 Mar 2016 10:38:08 -0500 From: Arnd Bergmann To: linux-arm-kernel@lists.infradead.org Cc: Mauro Carvalho Chehab , Hans Verkuil , linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Subject: Re: [PATCH] [media] v4l2/dvb: allow v4l2_mc functions to be used by dvb Date: Fri, 04 Mar 2016 16:37:29 +0100 Message-ID: <4935115.sMizstOCUV@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <20160303142953.2f8943bd@recife.lan> References: <1456692724-751344-1-git-send-email-arnd@arndb.de> <20160303142953.2f8943bd@recife.lan> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:6HBtDxeew43MX/Z/1nhRq62j3vWvi00z8txNP5VntsCvjOOQT0P u15WlvzJ5hWa76LvPLhw5GfqZW0owUDCtYm3yCaesCLM/rSIKB6S112X1fub+uh0bKxC4PC s09stSMS41+6ob9s0c83fMHuKJhuV0EE/UIB1YprkFpSoptU9wswGa7M5l6QzLTBcbWQsTD zt4nIPfbStn/Gf8Vm7TFw== X-UI-Out-Filterresults: notjunk:1;V01:K0:vbjPp10g6K8=:XBtK7u6VfWlfywyskDk36M y3kWgDYRuGjzJkYux6QXTmPVwEidvqkcl7hUn90nNgyZWMVb7IEYhRUGRjj9REKatB07Euip+ NW/Nosh/a7KoVcguKBBcgOFCy/KYajQa2bOfBqzy4ok6MRKrcyetOKL21jJEZUlzQfcxiI/hP Z1N9MO4GN7YPEZ6oOusZDpPLyx8lCFLebHTSa1WjVPjNe1+/6prB5ZnUkuiq0SMSDz4QO5Z6d ys7yjjV/IweMJ67qQqI/Ub4dR70RCIqfhCW/Bmz6LBQj8vsQLnpe4YlBeGvOL5/6tPnrjRXJY mjC6s8fWKO3eeJEftWHzMbspHnIYYJv52lZ4n40OjKx8yKANQLKWB6hLTOHOPBf/e0iSIjmNd gM107wBJ8JQnqqhwbkJm1klbpdwYUp+Sfg888hHyEGZueZEAbwdBcM0Oj/Vr+ZuH48EWqMYKv beQ15kqsb8voEqoqI3Puq29dxVhRgnJhrAJxMuYv935HzRh9Qjq5G5htmhHWjsmKcJ7RAdC7Y mV+Wjeuorj0Oy2R30HZZOyQHW/QLVZ9eSsyyFKCxthUDurD0s2qwrIt6IXB/F02aI1LeaSJgh afZVJRI41HR5NuLcnRl23Y57IKJazmYIUXyVBYbwXcXwnY9zUN8/9n1kCz7BBDafIPy7VODby m3Uu/Jh2B/dM8SkYQrF9n3qzkjLm2XZjxmRsEeYaBTYo92iQCSkXYZ0+tAIgSG5NTkXtsycg1 Lt8uNl8X7Er/lnnR Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1602 Lines: 34 On Thursday 03 March 2016 14:29:53 Mauro Carvalho Chehab wrote: > Em Sun, 28 Feb 2016 21:51:48 +0100 > Arnd Bergmann escreveu: > > > In a configuration that supports all DVB drivers but that disables > > V4L2 or builds it as a loadable module, we get link errors because > > of the recent change to use __v4l2_mc_usb_media_device_init: > > > > drivers/media/built-in.o: In function `dvb_usb_adapter_dvb_init': > > :(.text+0xe7966): undefined reference to `__v4l2_mc_usb_media_device_init' > > drivers/media/built-in.o: In function `dvb_usbv2_init': > > :(.text+0xff1cc): undefined reference to `__v4l2_mc_usb_media_device_init' > > drivers/media/built-in.o: In function `smsusb_init_device': > > :(.text+0x113be4): undefined reference to `__v4l2_mc_usb_media_device_init' > > drivers/media/built-in.o: In function `au0828_usb_probe': > > :(.text+0x114d08): undefined reference to `__v4l2_mc_usb_media_device_init' > > > > This patch is one way out, by simply building the v4l2-mc.c file > > whenever at least one of VIDEO_V4L2 or DVB_CORE are enabled, including > > the case that one of them is a module and the other is built-in, which > > leads the MC code to become built-in as well. > > Thanks for the patch, but I actually solved this issue the other way > around: I moved those functions to the media core, where both V4L and DVB > uses it. This also allows using the function outside (like on ALSA). > > I should be pushing it later today to Linux next. > > Excellent! I was trying to come up with a better place for the code but didn't know where else to put it. Arnd