8390 driver does not export symbols.

From: Sang-yong Suh (sysuh@kigam.re.kr)
Date: Thu Jun 22 2000 - 02:46:23 EST


According to 2.4.0-test1 Makefile, 8390 is not compiled as module.
This means that "#ifdef MODULE" statement is always FALSE, and no
symbols are exported. This makes NE2000 cards unloadable.

A fix would be as follows. (Tested against ac22)

--
sysuh

--- linux/drivers/net/8390.c.orig Thu Jun 22 15:06:07 2000 +++ linux/drivers/net/8390.c Thu Jun 22 15:56:33 2000 @@ -1144,13 +1144,17 @@ outb_p(E8390_NODMA+E8390_TRANS+E8390_START, e8390_base+E8390_CMD); } -#ifdef MODULE +#if defined(MODULE) || defined(EXPORT_SYMTAB) EXPORT_SYMBOL(ei_open); EXPORT_SYMBOL(ei_close); EXPORT_SYMBOL(ei_interrupt); EXPORT_SYMBOL(ethdev_init); EXPORT_SYMBOL(NS8390_init); + +#endif /* defined(MODULE) || defined(EXPORT_SYMTAB) */ + +#ifdef MODULE int init_module(void) {

- 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.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Jun 23 2000 - 21:00:23 EST