lkml.org 
[lkml]   [1998]   [Mar]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: Misplaced __initfunc?
Hi,

> 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

\
 
 \ /
  Last update: 2005-03-22 13:41    [W:0.035 / U:0.604 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site