[PATCH-GIT] Re: PROBLEM 2.6.12-git6 CX88

From: Mauro Carvalho Chehab
Date: Fri Jun 24 2005 - 15:29:53 EST


Sean,

It is an already seen error that occurs only with gcc 4.0. It's
correction was already sent to Andrew Morton to be applied on the -mm
series.
I'm enclosing a patch for solving it.

Sean Bruno wrote:
> Attempted to compile 2.6.12 with git6 today received the following error
> on the cx88 module:
> drivers/media/video/cx88/cx88-core.c:548: error: static declaration of
> âcx88_pci_irqsâ follows non-static declaration
> drivers/media/video/cx88/cx88.h:438: error: previous declaration of
> âcx88_pci_irqsâ was here
> Also, here is my gcc version info:
> [root@home-desk linux-2.6.12]# gcc -v
> Using built-in specs.
> Target: x86_64-redhat-linux
> gcc version 4.0.0 20050519 (Red Hat 4.0.0-8)
+++++
^

Mauro.
drivers/media/video/cx88/cx88.h | 1 -
1 files changed, 1 deletion(-)
--- drivers/media/video/cx88/cx88.h.old 2005-06-24 17:13:51.000000000 -0300
+++ drivers/media/video/cx88/cx88.h 2005-06-24 17:14:05.000000000 -0300
@@ -435,7 +435,6 @@ struct cx8802_dev {
/* ----------------------------------------------------------- */
/* cx88-core.c */

-extern char *cx88_pci_irqs[32];
extern char *cx88_vid_irqs[32];
extern char *cx88_mpeg_irqs[32];
extern void cx88_print_irqbits(char *name, char *tag, char **strings,