Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 29 Jun 2002 12:45:25 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 29 Jun 2002 12:45:25 -0400 Received: from hermes.fachschaften.tu-muenchen.de ([129.187.176.19]:10485 "HELO hermes.fachschaften.tu-muenchen.de") by vger.kernel.org with SMTP id ; Sat, 29 Jun 2002 12:45:24 -0400 Date: Sat, 29 Jun 2002 18:47:41 +0200 (CEST) From: Adrian Bunk X-X-Sender: bunk@mimas.fachschaften.tu-muenchen.de To: Jakob Kemi cc: Rolf Fokkens , Marcelo Tosatti , Subject: Re: [BUG] [2.4.19-rc1] w9966 doesn't compile In-Reply-To: <200206291255.g5TCtnH25982@d1o849.telia.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1857 Lines: 75 On Sat, 29 Jun 2002, Jakob Kemi wrote: > Hi Rolf and Adrian! Hi Jakob, > > > While trying to compile 2.4.19-rc1 the following error occurs: > > > > > > w9966.c:68: warning: invalid character in macro parameter name > > > w9966.c:68: badly punctuated parameter list in `#define' >... > > You are using egcs? > > > > It seems egcs can't handle the following in lines 68-69: > > > > <-- snip --> > > > > ... > > # define DPRINTF(...) do {} while(0) > > # define DASSERT(...) do {} while(0) > > ... > > > > <-- snip --> > > > > > > Since egcs is a supported compiler someone should fix this before > > 2.4.19-final comes out. >... > Unfortunatley I don't have egcs handy. Would this be a fix for egcs? > > --- w9966.c.orig Sat Jun 29 14:23:41 2002 > +++ w9966.c Sat Jun 29 14:50:21 2002 > @@ -65,8 +65,8 @@ > DPRINTF("Assertion failed at line %d.\n", __LINE__);\ > } while (0) > #else > -# define DPRINTF(...) do {} while(0) > -# define DASSERT(...) do {} while(0) > +# define DPRINTF(f, a...) do {} while(0) > +# define DASSERT(f, a...) do {} while(0) > #endif > > /* yes, this patch fixes the compilation for egcs. > Regards, > Jakob Thanks for your fast response and patch Adrian --- drivers/media/video/w9966.c.old Sat Jun 29 18:43:39 2002 +++ drivers/media/video/w9966.c Sat Jun 29 18:43:42 2002 @@ -65,8 +65,8 @@ DPRINTF("Assertion failed at line %d.\n", __LINE__);\ } while (0) #else -# define DPRINTF(...) do {} while(0) -# define DASSERT(...) do {} while(0) +# define DPRINTF(f, a...) do {} while(0) +# define DASSERT(f, a...) do {} while(0) #endif /* - 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/