> There is a __initfunc before elmc_getinfo in drivers/net/3c523.c
> (2.1.90). The function displays info about the card under /proc.
> Doesn't __initfunc make the kernel free the memory of the function? I
> don't have a card to try the driver but this can't be right!?
Just apply the following patch.
Have a nice fortnight
-- Martin `MJ' Mares <mj@ucw.cz> http://atrey.karlin.mff.cuni.cz/~mj/ Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth "DEC = Delay in Error Correction"
--- drivers/net/3c523.c.mj Mon Mar 23 12:44:31 1998 +++ drivers/3c523.c Mon Mar 23 12:44:42 1998 @@ -383,8 +383,8 @@ } /*****************************************************************/ -__initfunc(static int -elmc_getinfo( char* buf, int slot, void* d )) { +static int +elmc_getinfo( char* buf, int slot, void* d ) { int len = 0; struct device* dev = (struct device*) d; int i;
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu