All of lore.kernel.org
 help / color / mirror / Atom feed
From: Adrian Bunk <bunk@fs.tum.de>
To: Loic Jaquemet <jal@les3stagiaires.freeserve.co.uk>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.5.49 - bttv module not compiling
Date: Sat, 23 Nov 2002 10:24:18 +0100	[thread overview]
Message-ID: <20021123092417.GA14886@fs.tum.de> (raw)
In-Reply-To: <20021123041250.10af38e3.jal@les3stagiaires.freeserve.co.uk>

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


  reply	other threads:[~2002-11-23  9:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-23  4:12 2.5.49 - bttv module not compiling Loic Jaquemet
2002-11-23  9:24 ` Adrian Bunk [this message]
2002-11-23 10:19 ` [PATCH] 2.5.49: make bttv compiling again Martin Loschwitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021123092417.GA14886@fs.tum.de \
    --to=bunk@fs.tum.de \
    --cc=jal@les3stagiaires.freeserve.co.uk \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.