Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753092AbZALGUp (ORCPT ); Mon, 12 Jan 2009 01:20:45 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751523AbZALGUd (ORCPT ); Mon, 12 Jan 2009 01:20:33 -0500 Received: from rex.securecomputing.com ([203.24.151.4]:33585 "EHLO cyberguard.com.au" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751471AbZALGUc (ORCPT ); Mon, 12 Jan 2009 01:20:32 -0500 Message-ID: <48E9AE16.2000002@snapgear.com> Date: Mon, 06 Oct 2008 16:20:06 +1000 From: Greg Ungerer User-Agent: Thunderbird 2.0.0.16 (X11/20080723) MIME-Version: 1.0 To: KOSAKI Motohiro CC: "David S. Miller" , Geert Uytterhoeven , Roman Zippel , Greg Ungerer , linux-m68k@vger.kernel.org, stable@kernel.org, LKML Subject: Re: [PATCH for 2.6.28 stable] m68knommu: fix m68knommu defconfig can't build References: <20081230193943.1281.KOSAKI.MOTOHIRO@jp.fujitsu.com> In-Reply-To: <20081230193943.1281.KOSAKI.MOTOHIRO@jp.fujitsu.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Kosako, KOSAKI Motohiro wrote: > I guess nobody don't test m68knommu at all last three month. > Do we still need to maintain this architecture? Yes, we do. Regards Greg > == > Currently, m68knommu defconfig can't build. it cause following error. > > net/built-in.o: In function `skb_dma_map': > : undefined reference to `dma_mapping_error' > net/built-in.o: In function `skb_dma_unmap': > : undefined reference to `dma_unmap_single' > net/built-in.o: In function `skb_dma_unmap': > : undefined reference to `dma_unmap_page' > net/built-in.o: In function `skb_dma_map': > : undefined reference to `dma_map_single' > net/built-in.o: In function `skb_dma_map': > : undefined reference to `dma_map_page' > net/built-in.o: In function `skb_dma_map': > : undefined reference to `dma_unmap_page' > net/built-in.o: In function `skb_dma_map': > : undefined reference to `dma_unmap_single' > > because > - CONFIG_DMA depend on !NO_DMA > - m68knommu always doesn't turn on NO_DMA > - if CONFIG_PCI=n, m68knommu/include/asm/dma-magging.h include > asm-generic/dma-mapping-broken.h > - dma-mapping-broken.h generate link time error. > - m68knommu defconfig doesn't have CONFIG_PCI > - On the other hand, net/core/skb_dma_map.c assume CONFIG_DMA=y mean > dma related function is callable > > So, we want to turn on CONFIG_DMA if CONFIG_PCI=y only. > > > CC: David S. Miller > CC: Geert Uytterhoeven > CC: Roman Zippel > CC: Greg Ungerer > CC: linux-m68k@lists.linux-m68k.org > --- > arch/m68knommu/Kconfig | 3 +++ > 1 file changed, 3 insertions(+) > > Index: b/arch/m68knommu/Kconfig > =================================================================== > --- a/arch/m68knommu/Kconfig 2008-12-25 08:26:37.000000000 +0900 > +++ b/arch/m68knommu/Kconfig 2008-12-28 21:09:58.000000000 +0900 > @@ -73,6 +73,9 @@ config GENERIC_CLOCKEVENTS > config NO_IOPORT > def_bool y > > +config NO_DMA > + def_bool !PCI > + > source "init/Kconfig" > > source "kernel/Kconfig.freezer" > > > -- ------------------------------------------------------------------------ Greg Ungerer -- Principal Engineer EMAIL: gerg@snapgear.com SnapGear, a McAfee Company PHONE: +61 7 3435 2888 825 Stanley St, FAX: +61 7 3891 3630 Woolloongabba, QLD, 4102, Australia WEB: http://www.SnapGear.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/