From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755346AbXD0BP4 (ORCPT ); Thu, 26 Apr 2007 21:15:56 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755345AbXD0BP4 (ORCPT ); Thu, 26 Apr 2007 21:15:56 -0400 Received: from agminet01.oracle.com ([141.146.126.228]:56189 "EHLO agminet01.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755347AbXD0BPy (ORCPT ); Thu, 26 Apr 2007 21:15:54 -0400 Date: Thu, 26 Apr 2007 18:17:42 -0700 From: Randy Dunlap To: Andrew Morton Cc: William Heimbigner , linux-kernel@vger.kernel.org, Jean Delvare , Benjamin Herrenschmidt Subject: Re: linux-2.6.21-rc7-mm2 fails to compile Message-Id: <20070426181742.413953c1.randy.dunlap@oracle.com> In-Reply-To: <20070426175420.f2caae1a.akpm@linux-foundation.org> References: <20070426175420.f2caae1a.akpm@linux-foundation.org> Organization: Oracle Linux Eng. X-Mailer: Sylpheed 2.3.1 (GTK+ 2.8.10; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Whitelist: TRUE X-Whitelist: TRUE X-Brightmail-Tracker: AAAAAQAAAAI= Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 26 Apr 2007 17:54:20 -0700 Andrew Morton wrote: > On Fri, 27 Apr 2007 00:00:15 +0000 (GMT) William Heimbigner wrote: > > > Output leading up to the error: > > > > CC drivers/macintosh/macio-adb.o > > LD drivers/macintosh/built-in.o > > CC [M] drivers/macintosh/apm_emu.o > > CC [M] drivers/macintosh/therm_windtunnel.o > > drivers/macintosh/therm_windtunnel.c: In function 'therm_of_remove': > > drivers/macintosh/therm_windtunnel.c:462: error: void value not ignored as it > > ought to be > > drivers/macintosh/therm_windtunnel.c:463: warning: control reaches end of > > non-void function > > make[2]: *** [drivers/macintosh/therm_windtunnel.o] Error 1 > > make[1]: *** [drivers/macintosh] Error 2 > > make: *** [drivers] Error 2 > > > > This is on an iMac G3 powerpc. > > i2c_del_driver() was changed to reutrn void in the i2c tree. > > --- a/drivers/macintosh/therm_windtunnel.c~fix-jdelvare-i2c-i2c-del-driver-returns-void-on-powerpc > +++ a/drivers/macintosh/therm_windtunnel.c > @@ -459,7 +459,8 @@ therm_of_probe( struct of_device *dev, c > static int > therm_of_remove( struct of_device *dev ) > { > - return i2c_del_driver( &g4fan_driver ); > + i2c_del_driver( &g4fan_driver ); > + return 0; > } > > static struct of_device_id therm_of_match[] = {{ This will fail on the "ugly parentheses" test... :) --- ~Randy *** Remember to use Documentation/SubmitChecklist when testing your code ***