From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932203AbVKKC2P (ORCPT ); Thu, 10 Nov 2005 21:28:15 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751244AbVKKC2P (ORCPT ); Thu, 10 Nov 2005 21:28:15 -0500 Received: from smtp.osdl.org ([65.172.181.4]:53466 "EHLO smtp.osdl.org") by vger.kernel.org with ESMTP id S1751243AbVKKC2O (ORCPT ); Thu, 10 Nov 2005 21:28:14 -0500 Date: Thu, 10 Nov 2005 18:24:43 -0800 From: Andrew Morton To: Adrian Bunk Cc: linux-kernel@vger.kernel.org Subject: Re: [2.6 patch] add -Werror-implicit-function-declaration to CFLAGS Message-Id: <20051110182443.514622ed.akpm@osdl.org> In-Reply-To: <20051111021258.GK5376@stusta.de> References: <20051107200336.GH3847@stusta.de> <20051110042857.38b4635b.akpm@osdl.org> <20051111021258.GK5376@stusta.de> X-Mailer: Sylpheed version 1.0.4 (GTK+ 1.2.10; i386-redhat-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 Adrian Bunk wrote: > > On Thu, Nov 10, 2005 at 04:28:57AM -0800, Andrew Morton wrote: > > Adrian Bunk wrote: > > > > > > Currently, using an undeclared function gives a compile warning, but it > > > can lead to a nasty runtime error if the prototype of the function is > > > different from what gcc guessed. > > > > > > With -Werror-implicit-function-declaration, we are getting an immediate > > > compile error instead. > > > > > > There will be some compile errors in cases where compilation previously > > > worked because the undefined function wasn't called due to gcc dead code > > > elimination, but in these cases a proper fix doesnt harm. > > > > > > > Sorry, I need to build allmodconfig kernels on wacky architectures (eg > > ppc64) and this patch is killing me. > > Can you send me the list of compile errors so that I can work on fixing > them? > No handily, sorry. Missing virt_to_bus() is the typical problem. The cross-tools at http://developer.osdl.org/dev/plm/cross_compile/ are quite simple to install.