2000-12-11 00:28:08

by Frank Davis

[permalink] [raw]
Subject: [PATCH]test12-pre8 i2o_lan.c

Hello,
I just downloaded test12-pre8 from ftp.kernel.org and received the following error, as I did in the old test12-pre8. The following error appears to fix the problem.
Regards,
Frank

i2o_lan.c:116: warning: initialization makes integer from pointer
without a cast
i2o_lan.c:1404: structure has no member named 'next'
make[2]: *** [i2o_lan.o] Error 1
make[2]: *** Leaving directory '/usr/src/linux/drivers/i2o

--- drivers/i2o/i2o_lan.c.old Sun Dec 10 18:02:22 2000
+++ drivers/i2o/i2o_lan.c Sun Dec 10 18:35:01 2000
@@ -1401,7 +1401,7 @@
atomic_set(&priv->tx_out, 0);
priv->tx_count = 0;

- priv->i2o_batch_send_task.next = NULL;
+ INIT_LIST_HEAD(&priv->i2o_batch_send_task.list);
priv->i2o_batch_send_task.sync = 0;
priv->i2o_batch_send_task.routine = (void *)i2o_lan_batch_send;
priv->i2o_batch_send_task.data = (void *)dev;