* 2.5.49 - bttv module not compiling
@ 2002-11-23 4:12 Loic Jaquemet
2002-11-23 9:24 ` Adrian Bunk
2002-11-23 10:19 ` [PATCH] 2.5.49: make bttv compiling again Martin Loschwitz
0 siblings, 2 replies; 3+ messages in thread
From: Loic Jaquemet @ 2002-11-23 4:12 UTC (permalink / raw)
To: linux-kernel
2 errors in drivers/media/video/bttv-cards.c
One #define is missing for AUDC_CONFIG_PINNACLE, used line 1742 ?
struct pci_dev has no name member ? line 2993.
struct pci_dev *dev = NULL;
[...]
printk(KERN_INFO "bttv: Host bridge is %s\n",dev->name);
gcc -Wp,-MD,drivers/media/video/.bttv-cards.o.d -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=k6 -Iarch/i386/mach-generic -nostdinc -iwithprefix include -DMODULE -DKBUILD_BASENAME=bttv_cards -DKBUILD_MODNAME=bttv -c -o drivers/media/video/bttv-cards.o drivers/media/video/bttv-cards.c
drivers/media/video/bttv-cards.c: Dans la fonction « miro_pinnacle_gpio »:
drivers/media/video/bttv-cards.c:1742: « AUDC_CONFIG_PINNACLE » non déclaré (première utilisation dans cette fonction)
drivers/media/video/bttv-cards.c:1742: (Chaque identificateur non déclaré est rapporté une seule fois
drivers/media/video/bttv-cards.c:1742: pour chaque fonction dans laquelle il apparaît.)
drivers/media/video/bttv-cards.c: Dans la fonction « bttv_check_chipset »:
drivers/media/video/bttv-cards.c:2993: structure n'a pas de membre nommé « name »
make[3]: *** [drivers/media/video/bttv-cards.o] Erreur 1
make[2]: *** [drivers/media/video] Erreur 2
make[1]: *** [drivers/media] Erreur 2
make: *** [drivers] Erreur 2
linux-2.5.49$ grep -rn AUDC_CONFIG_PINNACLE *
drivers/media/video/bttv-cards.c:1742: bttv_call_i2c_clients(btv,AUDC_CONFIG_PINNACLE,&id);
linux-2.5.49$
+----------------------------------------------+
|Jaquemet Loic |
|Eleve ingenieur en informatique FIIFO, ORSAY |
+----------------------------------------------+
http://sourceforge.net/projects/ffss/
#wirelessfr @ irc.freenode.net
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: 2.5.49 - bttv module not compiling
2002-11-23 4:12 2.5.49 - bttv module not compiling Loic Jaquemet
@ 2002-11-23 9:24 ` Adrian Bunk
2002-11-23 10:19 ` [PATCH] 2.5.49: make bttv compiling again Martin Loschwitz
1 sibling, 0 replies; 3+ messages in thread
From: Adrian Bunk @ 2002-11-23 9:24 UTC (permalink / raw)
To: Loic Jaquemet; +Cc: linux-kernel
On Sat, Nov 23, 2002 at 04:12:50AM +0000, Loic Jaquemet wrote:
>...
> struct pci_dev has no name member ? line 2993.
>
> struct pci_dev *dev = NULL;
> [...]
> printk(KERN_INFO "bttv: Host bridge is %s\n",dev->name);
>
>
> gcc -Wp,-MD,drivers/media/video/.bttv-cards.o.d -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=k6 -Iarch/i386/mach-generic -nostdinc -iwithprefix include -DMODULE -DKBUILD_BASENAME=bttv_cards -DKBUILD_MODNAME=bttv -c -o drivers/media/video/bttv-cards.o drivers/media/video/bttv-cards.c
>...
> drivers/media/video/bttv-cards.c:2993: structure n'a pas de membre nommé « name »
> make[3]: *** [drivers/media/video/bttv-cards.o] Erreur 1
> make[2]: *** [drivers/media/video] Erreur 2
> make[1]: *** [drivers/media] Erreur 2
> make: *** [drivers] Erreur 2
>...
Petr Vandrovec <vandrove@vc.cvut.cz> sent the following patch to fix
this compile error:
diff -urdN linux/drivers/media/video/bttv-cards.c linux/drivers/media/video/bttv-cards.c
--- linux/drivers/media/video/bttv-cards.c 2002-11-18 13:50:42.000000000 +0000
+++ linux/drivers/media/video/bttv-cards.c 2002-11-18 13:55:51.000000000 +0000
@@ -2990,7 +2990,7 @@
/* print which chipset we have */
while ((dev = pci_find_class(PCI_CLASS_BRIDGE_HOST << 8,dev)))
- printk(KERN_INFO "bttv: Host bridge is %s\n",dev->name);
+ printk(KERN_INFO "bttv: Host bridge is %s\n",dev->dev.name);
/* print warnings about any quirks found */
if (triton1)
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
^ permalink raw reply [flat|nested] 3+ messages in thread* [PATCH] 2.5.49: make bttv compiling again
2002-11-23 4:12 2.5.49 - bttv module not compiling Loic Jaquemet
2002-11-23 9:24 ` Adrian Bunk
@ 2002-11-23 10:19 ` Martin Loschwitz
1 sibling, 0 replies; 3+ messages in thread
From: Martin Loschwitz @ 2002-11-23 10:19 UTC (permalink / raw)
To: Loic Jaquemet, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1450 bytes --]
Hi all,
in order to make bttv compiling in 2.5.49, the following patch was necessary
for me.
### BEGIN PATCH ###
diff -ruN linux-2.5.49-old/drivers/media/video/audiochip.h linux-2.5.49/drivers/media/video/audiochip.h
--- linux-2.5.49-old/drivers/media/video/audiochip.h 2002-11-22 22:40:23.000000000 +0100
+++ linux-2.5.49/drivers/media/video/audiochip.h 2002-11-23 10:24:19.000000000 +0100
@@ -67,4 +67,7 @@
#define AUDC_SWITCH_MUTE _IO('m',16) /* turn on mute */
#endif
+/* misc stuff to pass around config info to i2c chips */
+#define AUDC_CONFIG_PINNACLE _IOW('m',32,int)
+
#endif /* AUDIOCHIP_H */
diff -ruN linux-2.5.49-old/drivers/media/video/bttv-cards.c linux-2.5.49/drivers/media/video/bttv-cards.c
--- linux-2.5.49-old/drivers/media/video/bttv-cards.c 2002-11-22 22:40:42.000000000 +0100
+++ linux-2.5.49/drivers/media/video/bttv-cards.c 2002-11-23 10:24:38.000000000 +0100
@@ -2990,7 +2990,7 @@
/* print which chipset we have */
while ((dev = pci_find_class(PCI_CLASS_BRIDGE_HOST << 8,dev)))
- printk(KERN_INFO "bttv: Host bridge is %s\n",dev->name);
+ printk(KERN_INFO "bttv: Host bridge is %s\n",dev->dev.name);
/* print warnings about any quirks found */
if (triton1)
### END PATCH ###
--
.''`. Name: Martin Loschwitz
: :' : E-Mail: madkiss@madkiss.org
`. `'` www: http://www.madkiss.org/
`- Use Debian GNU/Linux - http://www.debian.org
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-11-23 10:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-23 4:12 2.5.49 - bttv module not compiling Loic Jaquemet
2002-11-23 9:24 ` Adrian Bunk
2002-11-23 10:19 ` [PATCH] 2.5.49: make bttv compiling again Martin Loschwitz
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.