From: Geert Uytterhoeven <geert@linux-m68k.org>
To: Jeff Garzik <jgarzik@pobox.com>
Cc: netdev@oss.sgi.com, Linux Kernel <linux-kernel@vger.kernel.org>,
Andrew Morton <akpm@osdl.org>,
Al Viro <viro@parcelfarce.linux.theplanet.co.uk>,
Linux/m68k <linux-m68k@lists.linux-m68k.org>
Subject: Re: [BK PATCHES] 2.6.x experimental net driver queue
Date: Mon, 17 Nov 2003 18:58:41 +0100 (MET) [thread overview]
Message-ID: <Pine.GSO.4.21.0311171812000.5421-100000@waterleaf.sonytel.be> (raw)
In-Reply-To: <3FB81811.9090508@pobox.com>
On Sun, 16 Nov 2003, Jeff Garzik wrote:
> Yet more updates. Syncing with Andrew Morton, and more syncing with Al
> Viro.
>
> No users of init_etherdev remain in the tree. (yay!)
Here are some (untested, except for cross-gcc) fixes for the m68k-related
drivers:
- Space.c: fix incorrect prototypes for atarilance_probe() and mace_probe()
- a2065.c: kill superfluous argument of alloc_etherdev()
- apne.c:
o fix incorrect prototype for apne_probe()
o kill unused variable err
- mac8390.c:
o kill unused variable probed
o fix typos ENDOEV -> ENODEV and ERR_PTE -> ERR_PTR
o add missing variable slots
- macmace.c: use ERR_PTR() where needed
- macsonic.c: kill unused variable lp
- mvme147.c:
o kill conversion warning and kill a cast by making ram unsigned long
o add missing variable err
Note: The use of `slots' in mac8390.c is not in my tree. Do you know where that
change comes from?
--- linux-net2-2.6.0-test9.orig/drivers/net/Space.c 2003-11-17 11:41:17.000000000 +0100
+++ linux-net2-2.6.0-test9/drivers/net/Space.c 2003-11-17 18:38:56.000000000 +0100
@@ -74,7 +74,7 @@
extern struct net_device *SK_init(int unit);
extern struct net_device *seeq8005_probe(int unit);
extern struct net_device *smc_init(int unit);
-extern struct net_device *atarilance_probe(struct net_device *);
+extern struct net_device *atarilance_probe(int unit);
extern struct net_device *sun3lance_probe(int unit);
extern struct net_device *sun3_82586_probe(int unit);
extern struct net_device *apne_probe(int unit);
@@ -86,7 +86,7 @@
extern struct net_device *mvme147lance_probe(int unit);
extern struct net_device *tc515_probe(int unit);
extern struct net_device *lance_probe(int unit);
-extern struct net_device *mace_probe(struct net_device *dev);
+extern struct net_device *mace_probe(int unit);
extern struct net_device *macsonic_probe(int unit);
extern struct net_device *mac8390_probe(int unit);
extern struct net_device *mac89x0_probe(int unit);
--- linux-net2-2.6.0-test9.orig/drivers/net/a2065.c 2003-11-17 11:41:17.000000000 +0100
+++ linux-net2-2.6.0-test9/drivers/net/a2065.c 2003-11-17 18:39:24.000000000 +0100
@@ -737,7 +737,7 @@
continue;
}
- dev = alloc_etherdev(0, sizeof(struct lance_private));
+ dev = alloc_etherdev(sizeof(struct lance_private));
if (dev == NULL) {
release_resource(r1);
--- linux-net2-2.6.0-test9.orig/drivers/net/apne.c 2003-11-17 11:41:17.000000000 +0100
+++ linux-net2-2.6.0-test9/drivers/net/apne.c 2003-11-17 18:38:56.000000000 +0100
@@ -72,7 +72,7 @@
#define NESM_STOP_PG 0x80 /* Last page +1 of RX ring */
-int apne_probe(struct net_device *dev);
+struct net_device * __init apne_probe(int unit);
static int apne_probe1(struct net_device *dev, int ioaddr);
static int apne_open(struct net_device *dev);
@@ -572,8 +572,6 @@
int init_module(void)
{
- int err;
-
apne_dev = apne_probe(-1);
if (IS_ERR(apne_dev))
return PTR_ERR(apne_dev);
--- linux-net2-2.6.0-test9.orig/drivers/net/mac8390.c 2003-11-17 11:41:20.000000000 +0100
+++ linux-net2-2.6.0-test9/drivers/net/mac8390.c 2003-11-17 18:38:56.000000000 +0100
@@ -228,12 +228,12 @@
volatile unsigned short *i;
int version_disp = 0;
struct nubus_dev * ndev = NULL;
- static int probed;
- int err = -ENDOEV;
+ int err = -ENODEV;
struct nubus_dir dir;
struct nubus_dirent ent;
int offset;
+ static unsigned int slots;
enum mac8390_type cardtype;
@@ -379,7 +379,7 @@
dev->priv = NULL;
out:
free_netdev(dev);
- return ERR_PTE(err);
+ return ERR_PTR(err);
}
#ifdef MODULE
--- linux-net2-2.6.0-test9.orig/drivers/net/macmace.c 2003-11-17 11:41:20.000000000 +0100
+++ linux-net2-2.6.0-test9/drivers/net/macmace.c 2003-11-17 18:38:56.000000000 +0100
@@ -229,7 +229,7 @@
if (checksum != 0xFF) {
free_netdev(dev);
- return -ENODEV;
+ return ERR_PTR(-ENODEV);
}
memset(&mp->stats, 0, sizeof(mp->stats));
--- linux-net2-2.6.0-test9.orig/drivers/net/macsonic.c 2003-11-17 11:41:20.000000000 +0100
+++ linux-net2-2.6.0-test9/drivers/net/macsonic.c 2003-11-17 18:38:56.000000000 +0100
@@ -495,7 +495,6 @@
{
static int slots;
struct nubus_dev* ndev = NULL;
- struct sonic_local* lp;
unsigned long base_addr, prom_addr;
u16 sonic_dcr;
int id;
--- linux-net2-2.6.0-test9.orig/drivers/net/mvme147.c 2003-11-17 11:41:20.000000000 +0100
+++ linux-net2-2.6.0-test9/drivers/net/mvme147.c 2003-11-17 18:38:56.000000000 +0100
@@ -41,7 +41,7 @@
struct m147lance_private {
struct lance_private lance;
void *base;
- void *ram;
+ unsigned long ram;
};
/* function prototypes... This is easy because all the grot is in the
@@ -68,6 +68,7 @@
struct m147lance_private *lp;
u_long *addr;
u_long address;
+ int err;
if (!MACH_IS_MVME147 || called)
return ERR_PTR(-ENODEV);
@@ -112,7 +113,7 @@
dev->dev_addr[5]);
lp = (struct m147lance_private *)dev->priv;
- lp->ram = (void *)__get_dma_pages(GFP_ATOMIC, 3); /* 16K */
+ lp->ram = __get_dma_pages(GFP_ATOMIC, 3); /* 16K */
if (!lp->ram)
{
printk("%s: No memory for LANCE buffers\n", dev->name);
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
next prev parent reply other threads:[~2003-11-17 18:02 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-17 0:36 [BK PATCHES] 2.6.x experimental net driver queue Jeff Garzik
2003-11-17 17:58 ` Geert Uytterhoeven [this message]
2003-11-18 12:27 ` Geert Uytterhoeven
2003-11-18 21:42 ` Jeff Garzik
2003-11-19 22:08 ` Sam Creasey
2003-11-19 9:37 ` Geert Uytterhoeven
-- strict thread matches above, loose matches on Subject: below --
2003-12-07 20:36 Jeff Garzik
2003-12-05 19:28 Jeff Garzik
2003-11-22 18:30 Jeff Garzik
2003-11-16 18:16 Jeff Garzik
2003-10-29 23:34 Jeff Garzik
2003-10-29 21:23 Jeff Garzik
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=Pine.GSO.4.21.0311171812000.5421-100000@waterleaf.sonytel.be \
--to=geert@linux-m68k.org \
--cc=akpm@osdl.org \
--cc=jgarzik@pobox.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-m68k@lists.linux-m68k.org \
--cc=netdev@oss.sgi.com \
--cc=viro@parcelfarce.linux.theplanet.co.uk \
/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;
as well as URLs for NNTP newsgroup(s).