remove usage of init_etherdev
PATCH 1/1 remove usage of init_etherdev
Alan,
I have just sent you the prepare/withdraw/publish_etherdev patch for the ethernet devices. There's a copy (80kbytes) at
http://www.uow.edu.au/~andrewm/linux/init_etherdev.patch
It was fairly clean and I don't expect much breakage at all from this. I could only test the module and non-module error paths, but surely this patch represents an aggregate bug reduction :)
eepro100.c and acenic.c should still be 2.2-compatible.
The patch includes some other xmas goodies, including:
- An update to 3c59x which allows it to support 3com's recently-released 3c905CX. This is a bit ugly, but it gets people up and running until I can get my hands on one of these things.
- Fixed locking and write barriers in natsemi.c, as discussed with Manfred.
- Fixed a fair number of unchecked kmallocs and error-path resource leaks.
- comx.c needs proc_get_inode(), so that has been exported.
- dmfe.c was allowing itself to be unloaded whilst remaining registered on the PCI device list. crash, crash.
- Several drivers were not declaring their module parms and were not loadable with recent modutils.
- Several drivers had incorrect module parm declarations are were not loadable with recent modutils.
- All affected drivers now use SET_MODULE_OWNER instead of MOD_INC/DEC.
- drivers/net/depca.c oopses on boot because egcs-1.1.2 is miscompiling strstr(). It's failing to honour the clobber on edi. I put a workaround in depca.c.
A workaround in strstr is to force `ct' to be a memory operand, not a general operand. Shouldn't we do this? Or, even better, kill the asm strstr and use the one in lib/string.c?
I think aironet4500_card.c is missing some module refcount handling, but I didn't address this.
I'll send you the rrunner.c patch (maybe Jes has already done so?). Then if/when this stuff comes back to me I can do a final patch to remove the now-unused init_etherdev, init_fcdev, init_hip_dev, init_fddidev and init_trdev functions. Then we're done.
The CardServices drivers use a bare register_netdev() and I think they have the same race. But that's orthogonal to the current work.
Thanks.
Affected files:
arch/ppc/8xx_io/enet.carch/ppc/8xx_io/fec.carch/ppc/8260_io/enet.carch/ppc/8260_io/fcc_enet.cdrivers/net/3c509.cdrivers/net/lance.cdrivers/net/atp.cdrivers/net/tlan.cdrivers/net/sunbmac.cdrivers/net/sk_g16.cdrivers/net/3c59x.cdrivers/net/acenic.cdrivers/net/sunlance.cdrivers/net/sunhme.cdrivers/net/a2065.cdrivers/net/hydra.cdrivers/net/ariadne.cdrivers/net/myri_sbus.cdrivers/net/sunqe.cdrivers/net/atari_bionet.cdrivers/net/atari_pamsnet.cdrivers/net/eepro100.cdrivers/net/ncr885e.cdrivers/net/starfire.cdrivers/net/pcnet32.cdrivers/net/via-rhine.cdrivers/net/yellowfin.cdrivers/net/oaknet.cdrivers/net/sis900.cdrivers/net/arlan.cdrivers/net/mace.cdrivers/net/am79c961a.cdrivers/net/epic100.cdrivers/net/ne2k-pci.cdrivers/net/hplance.cdrivers/net/bmac.cdrivers/net/sb1000.cdrivers/net/dmfe.cdrivers/net/gmac.cdrivers/net/daynaport.cdrivers/net/8139too.cdrivers/net/3c515.cdrivers/net/sk98lin/skge.cdrivers/net/tulip/tulip_core.cdrivers/net/bagetlance.cdrivers/net/declance.cdrivers/net/stnic.cdrivers/net/ioc3-eth.cdrivers/net/macsonic.cdrivers/net/sun3lance.cdrivers/net/pcmcia/aironet4500_cs.cdrivers/net/pcmcia/xircom_tulip_cb.cdrivers/net/aironet4500_card.cdrivers/net/aironet4500_core.cdrivers/net/macmace.cdrivers/net/rtl8129.cdrivers/net/natsemi.cdrivers/net/hamachi.cdrivers/net/sundance.cdrivers/net/winbond-840.cdrivers/net/depca.cdrivers/acorn/net/ether1.cdrivers/acorn/net/ether3.cdrivers/acorn/net/etherh.cdrivers/usb/pegasus.c
fs/proc/procfs_syms.c
-
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/