ARCnet compile fix for 2.1.120

David Woodhouse (David.Woodhouse@mvhi.com)
Thu, 03 Sep 1998 20:42:07 +0100


This makes arcnet.c compile in pre-2.1.120-3. Linus, please apply it to your
tree.

A more comprehensive patch will follow when I receive some cards and can check
they still work, but for now this will at least let it compile.

--- linux/drivers/net/arcnet.c.120-3 Thu Sep 3 20:35:48 1998
+++ linux/drivers/net/arcnet.c Thu Sep 3 20:37:43 1998
@@ -149,8 +149,8 @@
retransmit immediately)
- Add support for the new 1.3.x IP header cache, and other features.
- Replace setting of debug level with the "metric" flag hack by
- something better. SIOCDEVPRIVATE is a good candidate, but it would
- require an extra user-level utility.
+ something that still exists. SIOCDEVPRIVATE is a good candidate,
+ but it would require an extra user-level utility.

- What about cards with shared memory that can be "turned off?"
(or that have none at all, like the SMC PC500longboard)
@@ -428,13 +428,13 @@
{
struct arcnet_local *lp = (struct arcnet_local *)dev->priv;

- if (dev->metric>=1000)
- {
- arcnet_debug=dev->metric-1000;
- printk(KERN_INFO "%6s: debug level set to %d\n",dev->name,arcnet_debug);
- dev->metric=1;
- }
-
+ /* if (dev->metric>=1000)
+ * {
+ * arcnet_debug=dev->metric-1000;
+ * printk(KERN_INFO "%6s: debug level set to %d\n",dev->name,arcnet_debug);
+ * dev->metric=1;
+ *}
+ */
BUGMSG(D_INIT,"arcnet_open: resetting card.\n");

/* try to put the card in a defined state - if it fails the first

---- ---- ----
David Woodhouse David.Woodhouse@mvhi.com Office: (+44) 1223 810302
Project Leader, Process Information Systems Mobile: (+44) 976 658355
Axiom (Cambridge) Ltd., Swaffham Bulbeck, Cambridge, CB5 0NA, UK.
finger dwmw2@ferret.lmh.ox.ac.uk for PGP key.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html