Two more bugs, one fix

Matthew Harrell (mharrell@std.saic.com)
Thu, 3 Apr 1997 10:55:58 -0500 (EST)


I've had different problems compiling 2.1.31.

The first happens to deal with net/ipv4/ipmr.c which uses the function
impr_cache_delete () which I can't seem to find anywhere in the source
code (therefore I can't compile in multicast).

The second problem is with drivers/net/shaper.c as shown by this error
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -pipe -fno-strength-reduce -m486 -malign-loops=2
-malign-jumps=2 -malign-functions=2 -DCPU=586 -DMODULE -DMODVERSIONS
-include /usr/src/linux/include/linux/modversions.h -c -o shaper.o shaper.c
shaper.c: In function `shaper_attach':
shaper.c:487: warning: assignment from incompatible pointer type
shaper.c:488: warning: assignment from incompatible pointer type
shaper.c: In function `shaper_probe':
shaper.c:576: warning: assignment from incompatible pointer type
shaper.c: In function `init_module':
shaper.c:617: `dev' undeclared (first use this function)
shaper.c:617: (Each undeclared identifier is reported only once
shaper.c:617: for each function it appears in.)
make[2]: *** [shaper.o] Error 1
make[2]: Leaving directory `/usr/users/source/linux/drivers/net'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/users/source/linux/drivers'
make: *** [modules] Error 2

I'm guessing this could be fixed by reverting to what it was before:

--- linux/drivers/net/shaper.c.ori Thu Apr 3 10:53:59 1997
+++ linux/drivers/net/shaper.c Thu Apr 3 10:54:17 1997
@@ -614,7 +614,7 @@
if(err<0)
return err;
printk(SHAPER_BANNER);
- if (register_netdev(dev) != 0)
+ if (register_netdev(&dev_shape) != 0)
return -EIO;
printk("Traffic shaper initialised.\n");
return 0;

-- 
  Matthew Harrell                          If a tree falls in the forest and
  Simulation Technology Division, SAIC     crushes a mime, does anybody care?
  mharrell@erols.com