From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936708AbYD1Qs7 (ORCPT ); Mon, 28 Apr 2008 12:48:59 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S936626AbYD1Qso (ORCPT ); Mon, 28 Apr 2008 12:48:44 -0400 Received: from smtp4.pp.htv.fi ([213.243.153.38]:53430 "EHLO smtp4.pp.htv.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936630AbYD1Qsm (ORCPT ); Mon, 28 Apr 2008 12:48:42 -0400 Date: Mon, 28 Apr 2008 19:48:07 +0300 From: Adrian Bunk To: Linus Torvalds Cc: Ingo Molnar , Linux Kernel Mailing List , Andrew Morton , Thomas Gleixner , "H. Peter Anvin" , Alexander van Heukelum , jdike@addtoit.com Subject: Re: [2.6 patch] fs/buffer.c:init_buffer() mustn't be inline Message-ID: <20080428164807.GW2813@cs181133002.pp.htv.fi> References: <20080424215739.GA32378@elte.hu> <20080426151516.GA27894@elte.hu> <20080426172222.GD17345@elte.hu> <20080428153829.GB2813@cs181133002.pp.htv.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.17+20080114 (2008-01-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 28, 2008 at 09:01:42AM -0700, Linus Torvalds wrote: > > > On Mon, 28 Apr 2008, Adrian Bunk wrote: > < > > This patch fixes the following build error with UML and gcc 4.3: > > > > <-- snip --> > > > > ... > > CC fs/buffer.o > > /home/bunk/linux/kernel-2.6/git/linux-2.6/fs/buffer.c: In function ‘init_page_buffers’: > > /home/bunk/linux/kernel-2.6/git/linux-2.6/fs/buffer.c:51: sorry, unimplemented: inlining failed in call to ‘init_buffer’: function body not available > > /home/bunk/linux/kernel-2.6/git/linux-2.6/fs/buffer.c:1007: sorry, unimplemented: called from here > > make[2]: *** [fs/buffer.o] Error 1 > > Can somebody tell why this is not a gcc bug? It is a gcc bug. But having a global function marked as extern was already questionable, and all assumptions an "inline" would always inline the code are anyway now broken in your tree. So let's work around a gcc bug by fixing the kernel... > Linus cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed