From: Adrian Bunk <bunk@fs.tum.de>
To: Matthew Wilcox <willy@debian.org>
Cc: linux-kernel@vger.kernel.org
Subject: [2.5 patch] fix compile breakage in drivers/net/arcnet/com20020-pci.c
Date: Mon, 18 Nov 2002 14:10:14 +0100 [thread overview]
Message-ID: <20021118131014.GC11952@fs.tum.de> (raw)
Hi Matthew,
could you check whether the patch below that does a name -> dev.name to
fix the following compile error in 2.5.48 is correct?
<-- snip -->
...
gcc -Wp,-MD,drivers/net/arcnet/.com20020-pci.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 -DKBUILD_BASENAME=com20020_pci -DKBUILD_MODNAME=com20020_pci -c -o drivers/net/arcnet/com20020-pci.o drivers/net/arcnet/com20020-pci.c
drivers/net/arcnet/com20020-pci.c: In function `com20020pci_probe':
drivers/net/arcnet/com20020-pci.c:93: structure has no member named `name'
make[3]: *** [drivers/net/arcnet/com20020-pci.o] Error 1
<-- snip -->
TIA
Adrian
--- linux-2.5.48/drivers/net/arcnet/com20020-pci.c.old 2002-11-18 14:02:51.000000000 +0100
+++ linux-2.5.48/drivers/net/arcnet/com20020-pci.c 2002-11-18 14:03:06.000000000 +0100
@@ -90,7 +90,7 @@
dev->base_addr = ioaddr;
dev->irq = pdev->irq;
dev->dev_addr[0] = node;
- lp->card_name = pdev->name;
+ lp->card_name = pdev->dev.name;
lp->card_flags = id->driver_data;
lp->backplane = backplane;
lp->clockp = clockp & 7;
reply other threads:[~2002-11-18 13:03 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20021118131014.GC11952@fs.tum.de \
--to=bunk@fs.tum.de \
--cc=linux-kernel@vger.kernel.org \
--cc=willy@debian.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox