Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S268142AbUIWB7Q (ORCPT ); Wed, 22 Sep 2004 21:59:16 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S268139AbUIWB7L (ORCPT ); Wed, 22 Sep 2004 21:59:11 -0400 Received: from pointblue.com.pl ([81.219.144.6]:25106 "EHLO pointblue.com.pl") by vger.kernel.org with ESMTP id S268138AbUIWB67 (ORCPT ); Wed, 22 Sep 2004 21:58:59 -0400 Message-ID: <41522DD5.6050809@pointblue.com.pl> Date: Thu, 23 Sep 2004 03:58:45 +0200 From: Grzegorz Piotr Jaskiewicz User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040820 Debian/1.7.2-4 X-Accept-Language: en MIME-Version: 1.0 To: Andrew Morton Cc: kernel list Subject: Re: [PATCH 1/3] compilation fixes for gcc 4.0 References: <4151D03D.4030506@pointblue.com.pl> In-Reply-To: <4151D03D.4030506@pointblue.com.pl> Content-Type: multipart/mixed; boundary="------------010308070601070803040709" Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1874 Lines: 63 This is a multi-part message in MIME format. --------------010308070601070803040709 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Grzegorz Piotr Jaskiewicz wrote: > gcc 4.0 doesn't treat this extension as valid anymore. > > one of the gcc guys said to me: > " For that matter, they could neatly avoid the whole issue by writing > ANSI/ISO-compliant code instead of > using GCC extensions." > That should be sufficient for explanation. > > In all these cases, I see no reason to declare prototype inside body > of function. It makes code less readable. > > I am sure it's present in few more places, but that's the only place > where I can spot it. > Please apply. > This is resend, mozilla seem to do wordwraping. Patch is attached. Signed-off-by: Grzegorz Jaskiewicz --- -- GJ --------------010308070601070803040709 Content-Type: text/plain; name="grip_mp.c.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="grip_mp.c.patch" --- a/drivers/input/joystick/grip_mp.c 2004-08-14 07:37:42 +0200 +++ b/drivers/input/joystick/grip_mp.c 2004-09-22 20:58:40 +0200 @@ -107,6 +107,8 @@ static int axis_map[] = { 5, 9, 1, 5, 6, 10, 2, 6, 4, 8, 0, 4, 5, 9, 1, 5 }; +static void register_slot(int i, struct grip_mp *grip); + /* * Returns whether an odd or even number of bits are on in pkt. */ @@ -355,7 +357,6 @@ u32 packet; int joytype = 0; int slot = 0; - static void register_slot(int i, struct grip_mp *grip); /* Get a packet and check for validity */ --------------010308070601070803040709-- - 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/