Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754381AbXEFUzi (ORCPT ); Sun, 6 May 2007 16:55:38 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754348AbXEFUzi (ORCPT ); Sun, 6 May 2007 16:55:38 -0400 Received: from smtp1.linux-foundation.org ([65.172.181.25]:43197 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754200AbXEFUzh (ORCPT ); Sun, 6 May 2007 16:55:37 -0400 Date: Sun, 6 May 2007 13:55:31 -0700 From: Andrew Morton To: Sam Ravnborg Cc: Dan Kruchinin , linux-kernel@vger.kernel.org, Dan Williams Subject: Re: 2.6.21-mm1 Message-Id: <20070506135531.85417c86.akpm@linux-foundation.org> In-Reply-To: <20070506204429.GB10396@uranus.ravnborg.org> References: <20070505014955.8f3990b5.akpm@linux-foundation.org> <463D11A8.3090708@simon.arlott.org.uk> <20070506204429.GB10396@uranus.ravnborg.org> X-Mailer: Sylpheed 2.4.1 (GTK+ 2.8.17; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2815 Lines: 63 On Sun, 6 May 2007 22:44:29 +0200 Sam Ravnborg wrote: > On Sun, May 06, 2007 at 08:33:48AM +0400, Dan Kruchinin wrote: > > > > > ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.21/2.6.21-mm1/ > > > > I have the following message after kernel compilation: > > > > --- > > ... > > WARNING: init/built-in.o - Section mismatch: reference to .init.text: > > from .text between 'rest_init' (at offset 0x11e) and 'try_name' > > Covered in another mail. > > > ... > > ... > > WARNING: drivers/dma/async_tx.o - Section mismatch: reference to > > .init.data: from .data after 'channel_table' (at offset 0x20) > > WARNING: drivers/dma/async_tx.o - Section mismatch: reference to > > .init.data: from .data after 'channel_table' (at offset 0x24) > > WARNING: drivers/dma/async_tx.o - Section mismatch: reference to > > .init.data: from .data after 'channel_table' (at offset 0x28) > > WARNING: drivers/dma/async_tx.o - Section mismatch: reference to > > .init.data: from .data after 'channel_table' (at offset 0x2c) > > WARNING: drivers/dma/async_tx.o - Section mismatch: reference to > > .init.data: from .data after 'channel_table' (at offset 0x30) > > WARNING: drivers/dma/async_tx.o - Section mismatch: reference to > > .init.data: from .data after 'channel_table' (at offset 0x34) > > WARNING: drivers/dma/async_tx.o - Section mismatch: reference to > > .init.data: from .data after 'channel_table' (at offset 0x38) > > WARNING: drivers/dma/async_tx.o - Section mismatch: reference to > > .init.data: from .data after 'channel_table' (at offset 0x3c) > > WARNING: drivers/dma/async_tx.o - Section mismatch: reference to > > .init.data: from .data after 'channel_table' (at offset 0x40) > > WARNING: drivers/dma/async_tx.o - Section mismatch: reference to > > .init.data: from .data after 'channel_table' (at offset 0x44) > > We have following code: > /* guarantee that calls that happen before init will not find a channel */ > static struct chan_ref_percpu __initdata null_chan_ref[NR_CPUS]; > > static struct chan_ref_percpu *channel_table[] = { > DMA_TX_ARRAY_INIT(null_chan_ref) > }; > > The DMA_TX_ARRAY_INIT is some macro obscufation that serves no > real use and just hide a few assignements. > What happens here is that we assign channel_table a value > that are used as cover-up until the real assignment happens > in the init function. > So the only real way to fix this seems to remove the otherwise correct > __initdata mark on null_chan_ref. > Thats one pointer wasted pr. cpu (in total NR_CPUS). > (add Dan to cc) - 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/