From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757139AbaIIPhI (ORCPT ); Tue, 9 Sep 2014 11:37:08 -0400 Received: from mailout4.w2.samsung.com ([211.189.100.14]:34937 "EHLO usmailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757026AbaIIPhE (ORCPT ); Tue, 9 Sep 2014 11:37:04 -0400 X-AuditID: cbfec373-b7f9d6d00000479f-ef-540f1e9ee220 Date: Tue, 09 Sep 2014 12:36:54 -0300 From: Mauro Carvalho Chehab To: Russell King - ARM Linux Cc: Linux Media Mailing List , Mauro Carvalho Chehab , Tony Lindgren , Vinod Koul , Arnd Bergmann , Peter Griffin , Balaji T K , Nishanth Menon , linux-next@vger.kernel.org, linux-kernel@vger.kernel.org, Stephen Rothwell , Janusz Krzysztofik , Tony Lindgren , linux-omap Subject: Re: [PATCH 1/3] omap-dma: Allow compile-testing omap1_camera driver Message-id: <20140909123654.37d60f38.m.chehab@samsung.com> In-reply-to: <20140909144157.GF12361@n2100.arm.linux.org.uk> References: <20140909124306.2d5a0d76@canb.auug.org.au> <6cbd00c5f2d342b573aaf9c0e533778374dd2e1e.1410273306.git.m.chehab@samsung.com> <20140909144157.GF12361@n2100.arm.linux.org.uk> X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.22; x86_64-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrBLMWRmVeSWpSXmKPExsVy+t/hEN15cvwhBhc2qFr8nXSM3WLq5O1s FpPe3ma2uLxrDptFz4atrBYHF7YxWsxe0s9icfsyr8WOU4uYLd78OMtksWHGPxaLrXuvslvs v+Jl8bJvP4sDn0dLcw+bx+9fkxg9vn2dxOLReOMGm8fmFVoei/e8ZPK4c20Pm8fxG9uZPB70 bWP0+LxJLoArissmJTUnsyy1SN8ugStj2bY5zAVTBCvOTjrI1MD4i6+LkZNDQsBE4sjEBYwQ tpjEhXvr2boYuTiEBJYwSkxZOYcFJCEk0MwkcWl6AYjNIqAqsfD0UTYQm03ASOJVYwsriC0i YCpx7dEzZpBmZoHZLBKvl/4CKxIW8JGYMGUOO4jNK2AlcfPJGyYQm1PARmJtezc7xLadjBLP d26COsNZ4ufMSYwQDYISPybfA7uCWUBLYvO2JlYIW15i85q3zBMYBWYhKZuFpGwWkrIFjMyr GEVLi5MLipPSc430ihNzi0vz0vWS83M3MUJiq3gH44sNVocYBTgYlXh4T8TwhQixJpYVV+Ye YpTgYFYS4bV+ARTiTUmsrEotyo8vKs1JLT7EyMTBKdXAqC9g9reiyGR3/96e7MkTrincEBB/ VSO+9gVDuGnRmhuOVi0PRcue1ZzmvHP13O+VG+rSyp/fZKs4IWcaLhMtVf4r8jnbnkmTObMW fJ99sCNmleCJ+k7xPp1Cfa4vIb2v9r4pv5dy4upb9huNphrT9Cz/MzLH/CueWelk57WbYd6E W86xlyv3KrEUZyQaajEXFScCAD9zhMSLAgAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, 9 Sep 2014 15:41:58 +0100 Russell King - ARM Linux escreveu: > On Tue, Sep 09, 2014 at 11:38:17AM -0300, Mauro Carvalho Chehab wrote: > > We want to be able to COMPILE_TEST the omap1_camera driver. > > It compiles fine, but it fails linkediting: > > > > ERROR: "omap_stop_dma" [drivers/media/platform/soc_camera/omap1_camera.ko] undefined! > > ERROR: "omap_start_dma" [drivers/media/platform/soc_camera/omap1_camera.ko] undefined! > > ERROR: "omap_dma_link_lch" [drivers/media/platform/soc_camera/omap1_camera.ko] undefined! > > ERROR: "omap_set_dma_dest_burst_mode" [drivers/media/platform/soc_camera/omap1_camera.ko] undefined! > > ERROR: "omap_set_dma_src_params" [drivers/media/platform/soc_camera/omap1_camera.ko] undefined! > > ERROR: "omap_request_dma" [drivers/media/platform/soc_camera/omap1_camera.ko] undefined! > > ERROR: "omap_set_dma_transfer_params" [drivers/media/platform/soc_camera/omap1_camera.ko] undefined! > > ERROR: "omap_set_dma_dest_params" [drivers/media/platform/soc_camera/omap1_camera.ko] undefined! > > ERROR: "omap_free_dma" [drivers/media/platform/soc_camera/omap1_camera.ko] undefined! > > > > So, add some stub functions to avoid it. > > The real answer to this is to find someone who still uses it, and convert > it to the DMA engine API. If there's no users, the driver might as well > be killed off. Hmm... it seems that there are still several drivers still relying on the functions declared at: omap-dma.h: $ grep extern include/linux/omap-dma.h |perl -ne 'print "$1\n" if (m/extern\s\S+\s(.*)\(/)' >funcs && git grep -f funcs -l arch/arm/mach-omap1/pm.c arch/arm/mach-omap2/pm24xx.c arch/arm/plat-omap/dma.c drivers/dma/omap-dma.c drivers/media/platform/omap/omap_vout_vrfb.c drivers/media/platform/omap3isp/isphist.c drivers/media/platform/soc_camera/omap1_camera.c drivers/mtd/onenand/omap2.c drivers/usb/gadget/udc/omap_udc.c drivers/usb/musb/tusb6010_omap.c drivers/video/fbdev/omap/omapfb_main.c include/linux/omap-dma.h Perhaps we can remove the header and mark all the above as BROKEN. If nobody fixes, we can strip all of them from the Kernel. Regards, Mauro